Skip to content

Commit 0b77039

Browse files
committed
Fix root query type in tests.
1 parent 117bb08 commit 0b77039

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/src/Kernel/ContextualViewsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,22 @@ public function testContextualViewFields() {
9191
$schema = $this->introspect();
9292

9393
$field = 'graphqlTestContextualTitleArgView';
94-
$this->assertArrayHasKey($field, $schema['types']['QueryRoot']['fields']);
94+
$this->assertArrayHasKey($field, $schema['types']['Query']['fields']);
9595
$this->assertArrayNotHasKey($field, $schema['types']['Node']['fields']);
9696
$this->assertArrayNotHasKey($field, $schema['types']['NodeTest']['fields']);
9797

9898
$field = 'graphqlTestContextualNodeView';
99-
$this->assertArrayHasKey($field, $schema['types']['QueryRoot']['fields']);
99+
$this->assertArrayHasKey($field, $schema['types']['Query']['fields']);
100100
$this->assertArrayHasKey($field, $schema['types']['Node']['fields']);
101101
$this->assertArrayHasKey($field, $schema['types']['NodeTest']['fields']);
102102

103103
$field = 'graphqlTestContextualNodetestView';
104-
$this->assertArrayHasKey($field, $schema['types']['QueryRoot']['fields']);
104+
$this->assertArrayHasKey($field, $schema['types']['Query']['fields']);
105105
$this->assertArrayNotHasKey($field, $schema['types']['Node']['fields']);
106106
$this->assertArrayHasKey($field, $schema['types']['NodeTest']['fields']);
107107

108108
$field = 'graphqlTestContextualNodeAndNodetestView';
109-
$this->assertArrayHasKey($field, $schema['types']['QueryRoot']['fields']);
109+
$this->assertArrayHasKey($field, $schema['types']['Query']['fields']);
110110
$this->assertArrayHasKey($field, $schema['types']['Node']['fields']);
111111
$this->assertArrayHasKey($field, $schema['types']['NodeTest']['fields']);
112112
}

0 commit comments

Comments
 (0)