Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit 61b16a6

Browse files
committed
updated unite test
1 parent 56cd1d3 commit 61b16a6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/wpunit/ExplicitOptionsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function testExplicitOptions() {
8989
'show_in_graphql' => true,
9090
'graphql_single_name' => 'acfCpt',
9191
'graphql_plural_name' => 'acfCpts',
92+
'public' => true,
9293
]
9394
);
9495

@@ -148,7 +149,7 @@ public function testExplicitOptions() {
148149
]
149150
);
150151

151-
$expected_text_3 = 'test value2';
152+
$expected_text_3 = 'test value3';
152153
update_field( 'acf_text_field', $expected_text_3, $cpt_id );
153154

154155
// post assert validation.

tests/wpunit/PostObjectFieldsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ public function testQueryMultipleSelectFieldWithNoValueSet() {
12131213
public function testQueryFieldOnCustomPostType() {
12141214

12151215
register_post_type( 'acf_test', [
1216-
'show_ui' => true,
1217-
'show_in_graphql' => 'true',
1216+
'public' => true,
1217+
'show_in_graphql' => 'true',
12181218
'graphql_single_name' => 'acfTest',
12191219
'graphql_plural_name' => 'acfTests'
12201220
] );

0 commit comments

Comments
 (0)