We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testExceptionIsMappedToAWarning() |
||
31 | { |
||
32 | $query = <<<EOF |
||
33 | query ExceptionQuery { |
||
34 | test |
||
35 | } |
||
36 | EOF; |
||
37 | |||
38 | $expectedData = [ |
||
39 | 'test' => null, |
||
40 | ]; |
||
41 | |||
42 | $expectedErrors = [ |
||
43 | [ |
||
44 | 'message' => 'Invalid argument exception', |
||
45 | 'locations' => [ |
||
46 | [ |
||
47 | 'line' => 2, |
||
48 | 'column' => 5, |
||
49 | ] |
||
50 | ], |
||
51 | ], |
||
52 | ]; |
||
53 | |||
54 | $this->assertGraphQL($query, $expectedData, $expectedErrors); |
||
55 | } |
||
56 | } |
||
57 |