We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -9,32 +9,3 @@ |
||
9 | 9 | final class DisableIntrospectionTest extends TestCase |
10 | 10 | { |
11 | 11 | private string $introspectionQuery = <<<'EOF' |
12 | - query { |
|
13 | - __schema { |
|
14 | - types { |
|
15 | - name |
|
16 | - description |
|
17 | - } |
|
18 | - } |
|
19 | - } |
|
20 | - EOF; |
|
21 | - |
|
22 | - public function testIntrospectionDisabled(): void |
|
23 | - { |
|
24 | - $expected = [ |
|
25 | - 'errors' => [ |
|
26 | - [ |
|
27 | - 'message' => 'GraphQL introspection is not allowed, but the query contained __schema or __type', |
|
28 | - 'locations' => [ |
|
29 | - [ |
|
30 | - 'line' => 2, |
|
31 | - 'column' => 3, |
|
32 | - ], |
|
33 | - ], |
|
34 | - ], |
|
35 | - ], |
|
36 | - ]; |
|
37 | - |
|
38 | - $this->assertResponse($this->introspectionQuery, $expected, self::ANONYMOUS_USER, 'disableIntrospection'); |
|
39 | - } |
|
40 | -} |