Skip to content

Commit 50495cb

Browse files
committed
apq: adapt test showing that a GET request using query parameters works in master
See #780
1 parent 3548710 commit 50495cb

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

tests/Unit/AutomatedPersistedQueriesTest.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,8 @@ public function testPersistedQueryFound(): void
139139

140140
$content = $response->json();
141141

142-
$expected = [
143-
'errors' => [
144-
[
145-
'message' => 'Syntax Error: Unexpected <EOF>',
146-
'extensions' => [
147-
'category' => 'graphql',
148-
],
149-
'locations' => [
150-
[
151-
'line' => 1,
152-
'column' => 1,
153-
],
154-
],
155-
],
156-
],
157-
];
158-
self::assertEquals($expected, $content);
142+
self::assertArrayHasKey('data', $content);
143+
self::assertEquals(['examples' => $this->data], $content['data']);
159144
}
160145

161146
// This test demonstrates we don't actually check the 'version'

0 commit comments

Comments
 (0)