Skip to content

Commit 1fac14a

Browse files
committed
- update tests
1 parent 4f06d7d commit 1fac14a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/wpunit/OptionsPageTest.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,6 @@ public function testOptionsPageRespectsGraphqlFieldName() {
196196
update_field( 'text', $expected_value, 'custom-graphql-name' );
197197
$get_field = get_field( 'text', 'custom-graphql-name' );
198198

199-
codecept_debug( [
200-
'$get_field' => $get_field,
201-
'$options_pages' => acf_get_options_pages(),
202-
]);
203-
204-
$this->assertSame( $expected_value, $get_field );
205-
206199

207200
$this->register_acf_field( [], [
208201
'graphql_field_name' => 'OptionsFields',
@@ -219,8 +212,8 @@ public function testOptionsPageRespectsGraphqlFieldName() {
219212

220213
$query = '
221214
{
222-
myCustomOptionsName {
223-
optionsFields {
215+
myCustomOptionsName { # this is the name of the options page based on graphql_type_name
216+
optionsFields { # this is the field name for the field group
224217
text
225218
}
226219
}

0 commit comments

Comments
 (0)