Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testGetErrors() |
||
13 | { |
||
14 | $request = new Request('GET'); |
||
15 | $errors = [['code' => 'test']]; |
||
16 | $body = json_encode([ |
||
17 | GraphQLException::ERROR_KEY => $errors, |
||
18 | ]); |
||
19 | $response = new Response($request, 400, [], $body); |
||
20 | $exc = new GraphQLException($response); |
||
21 | |||
22 | self::assertSame($errors, $exc->getErrors()); |
||
23 | } |
||
24 | } |
||
25 |