diff --git a/tests/wpunit/ExplicitOptionsTest.php b/tests/wpunit/ExplicitOptionsTest.php index 4ddfc78..0c255aa 100644 --- a/tests/wpunit/ExplicitOptionsTest.php +++ b/tests/wpunit/ExplicitOptionsTest.php @@ -89,6 +89,7 @@ public function testExplicitOptions() { 'show_in_graphql' => true, 'graphql_single_name' => 'acfCpt', 'graphql_plural_name' => 'acfCpts', + 'public' => true, ] ); @@ -148,7 +149,7 @@ public function testExplicitOptions() { ] ); - $expected_text_3 = 'test value2'; + $expected_text_3 = 'test value3'; update_field( 'acf_text_field', $expected_text_3, $cpt_id ); // post assert validation. diff --git a/tests/wpunit/PostObjectFieldsTest.php b/tests/wpunit/PostObjectFieldsTest.php index 13d8d0e..20e3816 100644 --- a/tests/wpunit/PostObjectFieldsTest.php +++ b/tests/wpunit/PostObjectFieldsTest.php @@ -1213,8 +1213,8 @@ public function testQueryMultipleSelectFieldWithNoValueSet() { public function testQueryFieldOnCustomPostType() { register_post_type( 'acf_test', [ - 'show_ui' => true, - 'show_in_graphql' => 'true', + 'public' => true, + 'show_in_graphql' => 'true', 'graphql_single_name' => 'acfTest', 'graphql_plural_name' => 'acfTests' ] );