Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — master (#947)
by Ruud
02:44
created
src/Config/Processor/InheritanceProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     private static function removedDecorators(array $configs): array
41 41
     {
42
-        return array_filter($configs, fn ($config) => !isset($config['decorator']) || true !== $config['decorator']);
42
+        return array_filter($configs, fn($config) => !isset($config['decorator']) || true !== $config['decorator']);
43 43
     }
44 44
 
45 45
     private static function processConfigsHeirs(array $configs): array
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $parentTypes = array_intersect_key($configs, array_flip($parents));
102 102
 
103 103
         // Restore initial order
104
-        uksort($parentTypes, fn ($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
104
+        uksort($parentTypes, fn($a, $b) => (int) (array_search($a, $parents, true) > array_search($b, $parents, true)));
105 105
 
106 106
         $mergedParentsConfig = self::mergeConfigs(...array_column($parentTypes, 'config'));
107 107
         $childType = $configs[$child];
Please login to merge, or discard this patch.
tests/Functional/MultipleQueries/MultipleQueriesTest.php 5 patches
Indentation   -47 removed lines patch added patch discarded remove patch
@@ -56,50 +56,3 @@
 block discarded – undo
56 56
     public function testRequiredFails(): void
57 57
     {
58 58
         $query = <<<'EOF'
59
-            {
60
-              fail: failRequire
61
-              success: success
62
-            }
63
-            EOF;
64
-        $result = $this->executeGraphQLRequest($query);
65
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
66
-        $this->assertTrue(empty($result['data']));
67
-    }
68
-
69
-    public function testOptionalFails(): void
70
-    {
71
-        $query = <<<'EOF'
72
-            {
73
-              fail: failOptional
74
-              success: success
75
-            }
76
-            EOF;
77
-        $result = $this->executeGraphQLRequest($query);
78
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
79
-    }
80
-
81
-    public function testMutationRequiredFails(): void
82
-    {
83
-        $query = <<<'EOF'
84
-            mutation {
85
-              fail: failRequire
86
-              success: success
87
-            }
88
-            EOF;
89
-        $result = $this->executeGraphQLRequest($query);
90
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
91
-        $this->assertTrue(empty($result['data']));
92
-    }
93
-
94
-    public function testMutationOptionalFails(): void
95
-    {
96
-        $query = <<<'EOF'
97
-            mutation {
98
-              fail: failOptional
99
-              success: success
100
-            }
101
-            EOF;
102
-        $result = $this->executeGraphQLRequest($query);
103
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
104
-    }
105
-}
Please login to merge, or discard this patch.
Switch Indentation   -47 removed lines patch added patch discarded remove patch
@@ -56,50 +56,3 @@
 block discarded – undo
56 56
     public function testRequiredFails(): void
57 57
     {
58 58
         $query = <<<'EOF'
59
-            {
60
-              fail: failRequire
61
-              success: success
62
-            }
63
-            EOF;
64
-        $result = $this->executeGraphQLRequest($query);
65
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
66
-        $this->assertTrue(empty($result['data']));
67
-    }
68
-
69
-    public function testOptionalFails(): void
70
-    {
71
-        $query = <<<'EOF'
72
-            {
73
-              fail: failOptional
74
-              success: success
75
-            }
76
-            EOF;
77
-        $result = $this->executeGraphQLRequest($query);
78
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
79
-    }
80
-
81
-    public function testMutationRequiredFails(): void
82
-    {
83
-        $query = <<<'EOF'
84
-            mutation {
85
-              fail: failRequire
86
-              success: success
87
-            }
88
-            EOF;
89
-        $result = $this->executeGraphQLRequest($query);
90
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
91
-        $this->assertTrue(empty($result['data']));
92
-    }
93
-
94
-    public function testMutationOptionalFails(): void
95
-    {
96
-        $query = <<<'EOF'
97
-            mutation {
98
-              fail: failOptional
99
-              success: success
100
-            }
101
-            EOF;
102
-        $result = $this->executeGraphQLRequest($query);
103
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
104
-    }
105
-}
Please login to merge, or discard this patch.
Spacing   -47 removed lines patch added patch discarded remove patch
@@ -56,50 +56,3 @@
 block discarded – undo
56 56
     public function testRequiredFails(): void
57 57
     {
58 58
         $query = <<<'EOF'
59
-            {
60
-              fail: failRequire
61
-              success: success
62
-            }
63
-            EOF;
64
-        $result = $this->executeGraphQLRequest($query);
65
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
66
-        $this->assertTrue(empty($result['data']));
67
-    }
68
-
69
-    public function testOptionalFails(): void
70
-    {
71
-        $query = <<<'EOF'
72
-            {
73
-              fail: failOptional
74
-              success: success
75
-            }
76
-            EOF;
77
-        $result = $this->executeGraphQLRequest($query);
78
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
79
-    }
80
-
81
-    public function testMutationRequiredFails(): void
82
-    {
83
-        $query = <<<'EOF'
84
-            mutation {
85
-              fail: failRequire
86
-              success: success
87
-            }
88
-            EOF;
89
-        $result = $this->executeGraphQLRequest($query);
90
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
91
-        $this->assertTrue(empty($result['data']));
92
-    }
93
-
94
-    public function testMutationOptionalFails(): void
95
-    {
96
-        $query = <<<'EOF'
97
-            mutation {
98
-              fail: failOptional
99
-              success: success
100
-            }
101
-            EOF;
102
-        $result = $this->executeGraphQLRequest($query);
103
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
104
-    }
105
-}
Please login to merge, or discard this patch.
Braces   -47 removed lines patch added patch discarded remove patch
@@ -56,50 +56,3 @@
 block discarded – undo
56 56
     public function testRequiredFails(): void
57 57
     {
58 58
         $query = <<<'EOF'
59
-            {
60
-              fail: failRequire
61
-              success: success
62
-            }
63
-            EOF;
64
-        $result = $this->executeGraphQLRequest($query);
65
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
66
-        $this->assertTrue(empty($result['data']));
67
-    }
68
-
69
-    public function testOptionalFails(): void
70
-    {
71
-        $query = <<<'EOF'
72
-            {
73
-              fail: failOptional
74
-              success: success
75
-            }
76
-            EOF;
77
-        $result = $this->executeGraphQLRequest($query);
78
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
79
-    }
80
-
81
-    public function testMutationRequiredFails(): void
82
-    {
83
-        $query = <<<'EOF'
84
-            mutation {
85
-              fail: failRequire
86
-              success: success
87
-            }
88
-            EOF;
89
-        $result = $this->executeGraphQLRequest($query);
90
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
91
-        $this->assertTrue(empty($result['data']));
92
-    }
93
-
94
-    public function testMutationOptionalFails(): void
95
-    {
96
-        $query = <<<'EOF'
97
-            mutation {
98
-              fail: failOptional
99
-              success: success
100
-            }
101
-            EOF;
102
-        $result = $this->executeGraphQLRequest($query);
103
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
104
-    }
105
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -47 removed lines patch added patch discarded remove patch
@@ -56,50 +56,3 @@
 block discarded – undo
56 56
     public function testRequiredFails(): void
57 57
     {
58 58
         $query = <<<'EOF'
59
-            {
60
-              fail: failRequire
61
-              success: success
62
-            }
63
-            EOF;
64
-        $result = $this->executeGraphQLRequest($query);
65
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
66
-        $this->assertTrue(empty($result['data']));
67
-    }
68
-
69
-    public function testOptionalFails(): void
70
-    {
71
-        $query = <<<'EOF'
72
-            {
73
-              fail: failOptional
74
-              success: success
75
-            }
76
-            EOF;
77
-        $result = $this->executeGraphQLRequest($query);
78
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
79
-    }
80
-
81
-    public function testMutationRequiredFails(): void
82
-    {
83
-        $query = <<<'EOF'
84
-            mutation {
85
-              fail: failRequire
86
-              success: success
87
-            }
88
-            EOF;
89
-        $result = $this->executeGraphQLRequest($query);
90
-        $this->assertSame(self::REQUIRED_FAILS_ERRORS, $result['errors']);
91
-        $this->assertTrue(empty($result['data']));
92
-    }
93
-
94
-    public function testMutationOptionalFails(): void
95
-    {
96
-        $query = <<<'EOF'
97
-            mutation {
98
-              fail: failOptional
99
-              success: success
100
-            }
101
-            EOF;
102
-        $result = $this->executeGraphQLRequest($query);
103
-        $this->assertSame(self::OPTIONAL_FAILS, $result);
104
-    }
105
-}
Please login to merge, or discard this patch.
tests/Functional/MultipleSchema/MultipleSchemaTest.php 5 patches
Indentation   -64 removed lines patch added patch discarded remove patch
@@ -26,67 +26,3 @@
 block discarded – undo
26 26
         $this->assertSame([['node' => ['username' => 'user1']]], $result['data']['users']['edges']);
27 27
 
28 28
         $query = <<<'EOF'
29
-            mutation M {
30
-              addUser(input: {username: "user1"}) {
31
-                user {
32
-                  username
33
-                }
34
-              }
35
-            }
36
-            EOF;
37
-
38
-        $expectedData = [
39
-            'addUser' => [
40
-                'user' => ['username' => 'user1'],
41
-            ],
42
-        ];
43
-
44
-        $this->assertGraphQL($query, $expectedData, null, [], 'public');
45
-    }
46
-
47
-    public function testInternalSchema(): void
48
-    {
49
-        $result = $this->executeGraphQLRequest('{bar foo}', [], 'internal');
50
-        $this->assertSame('bar', $result['data']['bar']);
51
-        $this->assertSame('foo', $result['data']['foo']);
52
-        $this->assertSchemaQueryTypeName('InternalQuery');
53
-
54
-        $result = $this->executeGraphQLRequest('{users{edges{node{username email}}}}', [], 'internal');
55
-        $this->assertSame([['node' => ['username' => 'user1', 'email' => 'topsecret']]], $result['data']['users']['edges']);
56
-
57
-        $query = <<<'EOF'
58
-            mutation M {
59
-              addUser(input: {username: "user1"}) {
60
-                user {
61
-                  username
62
-                  email
63
-                }
64
-              }
65
-            }
66
-            EOF;
67
-
68
-        $expectedData = [
69
-            'addUser' => [
70
-                'user' => ['username' => 'user1', 'email' => 'email1'],
71
-            ],
72
-        ];
73
-
74
-        $this->assertGraphQL($query, $expectedData, null, [], 'internal');
75
-    }
76
-
77
-    public function testUnknownTypeShouldNotInfinityLoop(): void
78
-    {
79
-        // @phpstan-ignore-next-line
80
-        $schema = $this->getContainer()->get('overblog_graphql.request_executor')->getSchema('public');
81
-        $this->expectException(InvariantViolation::class);
82
-        $this->expectExceptionMessage('Type loader is expected to return a callable or valid type "unknown", but it returned null');
83
-        $schema->getType('unknown');
84
-    }
85
-
86
-    private function assertSchemaQueryTypeName(string $typeName): void
87
-    {
88
-        // @phpstan-ignore-next-line
89
-        $query = $this->getContainer()->get('overblog_graphql.type_resolver')->resolve($typeName);
90
-        $this->assertSame('Query', $query->name);
91
-    }
92
-}
Please login to merge, or discard this patch.
Switch Indentation   -64 removed lines patch added patch discarded remove patch
@@ -26,67 +26,3 @@
 block discarded – undo
26 26
         $this->assertSame([['node' => ['username' => 'user1']]], $result['data']['users']['edges']);
27 27
 
28 28
         $query = <<<'EOF'
29
-            mutation M {
30
-              addUser(input: {username: "user1"}) {
31
-                user {
32
-                  username
33
-                }
34
-              }
35
-            }
36
-            EOF;
37
-
38
-        $expectedData = [
39
-            'addUser' => [
40
-                'user' => ['username' => 'user1'],
41
-            ],
42
-        ];
43
-
44
-        $this->assertGraphQL($query, $expectedData, null, [], 'public');
45
-    }
46
-
47
-    public function testInternalSchema(): void
48
-    {
49
-        $result = $this->executeGraphQLRequest('{bar foo}', [], 'internal');
50
-        $this->assertSame('bar', $result['data']['bar']);
51
-        $this->assertSame('foo', $result['data']['foo']);
52
-        $this->assertSchemaQueryTypeName('InternalQuery');
53
-
54
-        $result = $this->executeGraphQLRequest('{users{edges{node{username email}}}}', [], 'internal');
55
-        $this->assertSame([['node' => ['username' => 'user1', 'email' => 'topsecret']]], $result['data']['users']['edges']);
56
-
57
-        $query = <<<'EOF'
58
-            mutation M {
59
-              addUser(input: {username: "user1"}) {
60
-                user {
61
-                  username
62
-                  email
63
-                }
64
-              }
65
-            }
66
-            EOF;
67
-
68
-        $expectedData = [
69
-            'addUser' => [
70
-                'user' => ['username' => 'user1', 'email' => 'email1'],
71
-            ],
72
-        ];
73
-
74
-        $this->assertGraphQL($query, $expectedData, null, [], 'internal');
75
-    }
76
-
77
-    public function testUnknownTypeShouldNotInfinityLoop(): void
78
-    {
79
-        // @phpstan-ignore-next-line
80
-        $schema = $this->getContainer()->get('overblog_graphql.request_executor')->getSchema('public');
81
-        $this->expectException(InvariantViolation::class);
82
-        $this->expectExceptionMessage('Type loader is expected to return a callable or valid type "unknown", but it returned null');
83
-        $schema->getType('unknown');
84
-    }
85
-
86
-    private function assertSchemaQueryTypeName(string $typeName): void
87
-    {
88
-        // @phpstan-ignore-next-line
89
-        $query = $this->getContainer()->get('overblog_graphql.type_resolver')->resolve($typeName);
90
-        $this->assertSame('Query', $query->name);
91
-    }
92
-}
Please login to merge, or discard this patch.
Spacing   -64 removed lines patch added patch discarded remove patch
@@ -26,67 +26,3 @@
 block discarded – undo
26 26
         $this->assertSame([['node' => ['username' => 'user1']]], $result['data']['users']['edges']);
27 27
 
28 28
         $query = <<<'EOF'
29
-            mutation M {
30
-              addUser(input: {username: "user1"}) {
31
-                user {
32
-                  username
33
-                }
34
-              }
35
-            }
36
-            EOF;
37
-
38
-        $expectedData = [
39
-            'addUser' => [
40
-                'user' => ['username' => 'user1'],
41
-            ],
42
-        ];
43
-
44
-        $this->assertGraphQL($query, $expectedData, null, [], 'public');
45
-    }
46
-
47
-    public function testInternalSchema(): void
48
-    {
49
-        $result = $this->executeGraphQLRequest('{bar foo}', [], 'internal');
50
-        $this->assertSame('bar', $result['data']['bar']);
51
-        $this->assertSame('foo', $result['data']['foo']);
52
-        $this->assertSchemaQueryTypeName('InternalQuery');
53
-
54
-        $result = $this->executeGraphQLRequest('{users{edges{node{username email}}}}', [], 'internal');
55
-        $this->assertSame([['node' => ['username' => 'user1', 'email' => 'topsecret']]], $result['data']['users']['edges']);
56
-
57
-        $query = <<<'EOF'
58
-            mutation M {
59
-              addUser(input: {username: "user1"}) {
60
-                user {
61
-                  username
62
-                  email
63
-                }
64
-              }
65
-            }
66
-            EOF;
67
-
68
-        $expectedData = [
69
-            'addUser' => [
70
-                'user' => ['username' => 'user1', 'email' => 'email1'],
71
-            ],
72
-        ];
73
-
74
-        $this->assertGraphQL($query, $expectedData, null, [], 'internal');
75
-    }
76
-
77
-    public function testUnknownTypeShouldNotInfinityLoop(): void
78
-    {
79
-        // @phpstan-ignore-next-line
80
-        $schema = $this->getContainer()->get('overblog_graphql.request_executor')->getSchema('public');
81
-        $this->expectException(InvariantViolation::class);
82
-        $this->expectExceptionMessage('Type loader is expected to return a callable or valid type "unknown", but it returned null');
83
-        $schema->getType('unknown');
84
-    }
85
-
86
-    private function assertSchemaQueryTypeName(string $typeName): void
87
-    {
88
-        // @phpstan-ignore-next-line
89
-        $query = $this->getContainer()->get('overblog_graphql.type_resolver')->resolve($typeName);
90
-        $this->assertSame('Query', $query->name);
91
-    }
92
-}
Please login to merge, or discard this patch.
Braces   -64 removed lines patch added patch discarded remove patch
@@ -26,67 +26,3 @@
 block discarded – undo
26 26
         $this->assertSame([['node' => ['username' => 'user1']]], $result['data']['users']['edges']);
27 27
 
28 28
         $query = <<<'EOF'
29
-            mutation M {
30
-              addUser(input: {username: "user1"}) {
31
-                user {
32
-                  username
33
-                }
34
-              }
35
-            }
36
-            EOF;
37
-
38
-        $expectedData = [
39
-            'addUser' => [
40
-                'user' => ['username' => 'user1'],
41
-            ],
42
-        ];
43
-
44
-        $this->assertGraphQL($query, $expectedData, null, [], 'public');
45
-    }
46
-
47
-    public function testInternalSchema(): void
48
-    {
49
-        $result = $this->executeGraphQLRequest('{bar foo}', [], 'internal');
50
-        $this->assertSame('bar', $result['data']['bar']);
51
-        $this->assertSame('foo', $result['data']['foo']);
52
-        $this->assertSchemaQueryTypeName('InternalQuery');
53
-
54
-        $result = $this->executeGraphQLRequest('{users{edges{node{username email}}}}', [], 'internal');
55
-        $this->assertSame([['node' => ['username' => 'user1', 'email' => 'topsecret']]], $result['data']['users']['edges']);
56
-
57
-        $query = <<<'EOF'
58
-            mutation M {
59
-              addUser(input: {username: "user1"}) {
60
-                user {
61
-                  username
62
-                  email
63
-                }
64
-              }
65
-            }
66
-            EOF;
67
-
68
-        $expectedData = [
69
-            'addUser' => [
70
-                'user' => ['username' => 'user1', 'email' => 'email1'],
71
-            ],
72
-        ];
73
-
74
-        $this->assertGraphQL($query, $expectedData, null, [], 'internal');
75
-    }
76
-
77
-    public function testUnknownTypeShouldNotInfinityLoop(): void
78
-    {
79
-        // @phpstan-ignore-next-line
80
-        $schema = $this->getContainer()->get('overblog_graphql.request_executor')->getSchema('public');
81
-        $this->expectException(InvariantViolation::class);
82
-        $this->expectExceptionMessage('Type loader is expected to return a callable or valid type "unknown", but it returned null');
83
-        $schema->getType('unknown');
84
-    }
85
-
86
-    private function assertSchemaQueryTypeName(string $typeName): void
87
-    {
88
-        // @phpstan-ignore-next-line
89
-        $query = $this->getContainer()->get('overblog_graphql.type_resolver')->resolve($typeName);
90
-        $this->assertSame('Query', $query->name);
91
-    }
92
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -64 removed lines patch added patch discarded remove patch
@@ -26,67 +26,3 @@
 block discarded – undo
26 26
         $this->assertSame([['node' => ['username' => 'user1']]], $result['data']['users']['edges']);
27 27
 
28 28
         $query = <<<'EOF'
29
-            mutation M {
30
-              addUser(input: {username: "user1"}) {
31
-                user {
32
-                  username
33
-                }
34
-              }
35
-            }
36
-            EOF;
37
-
38
-        $expectedData = [
39
-            'addUser' => [
40
-                'user' => ['username' => 'user1'],
41
-            ],
42
-        ];
43
-
44
-        $this->assertGraphQL($query, $expectedData, null, [], 'public');
45
-    }
46
-
47
-    public function testInternalSchema(): void
48
-    {
49
-        $result = $this->executeGraphQLRequest('{bar foo}', [], 'internal');
50
-        $this->assertSame('bar', $result['data']['bar']);
51
-        $this->assertSame('foo', $result['data']['foo']);
52
-        $this->assertSchemaQueryTypeName('InternalQuery');
53
-
54
-        $result = $this->executeGraphQLRequest('{users{edges{node{username email}}}}', [], 'internal');
55
-        $this->assertSame([['node' => ['username' => 'user1', 'email' => 'topsecret']]], $result['data']['users']['edges']);
56
-
57
-        $query = <<<'EOF'
58
-            mutation M {
59
-              addUser(input: {username: "user1"}) {
60
-                user {
61
-                  username
62
-                  email
63
-                }
64
-              }
65
-            }
66
-            EOF;
67
-
68
-        $expectedData = [
69
-            'addUser' => [
70
-                'user' => ['username' => 'user1', 'email' => 'email1'],
71
-            ],
72
-        ];
73
-
74
-        $this->assertGraphQL($query, $expectedData, null, [], 'internal');
75
-    }
76
-
77
-    public function testUnknownTypeShouldNotInfinityLoop(): void
78
-    {
79
-        // @phpstan-ignore-next-line
80
-        $schema = $this->getContainer()->get('overblog_graphql.request_executor')->getSchema('public');
81
-        $this->expectException(InvariantViolation::class);
82
-        $this->expectExceptionMessage('Type loader is expected to return a callable or valid type "unknown", but it returned null');
83
-        $schema->getType('unknown');
84
-    }
85
-
86
-    private function assertSchemaQueryTypeName(string $typeName): void
87
-    {
88
-        // @phpstan-ignore-next-line
89
-        $query = $this->getContainer()->get('overblog_graphql.type_resolver')->resolve($typeName);
90
-        $this->assertSame('Query', $query->name);
91
-    }
92
-}
Please login to merge, or discard this patch.
tests/Functional/Upload/UploadTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
                     'payload' => ['data' => ['singleUpload' => 'a.txt']],
68 68
                 ],
69 69
                 [
70
-                   'id' => 'multipleUpload',
70
+                    'id' => 'multipleUpload',
71 71
                     'payload' => ['data' => ['multipleUpload' => ['b.txt', 'c.txt']]],
72 72
                 ],
73 73
             ],
Please login to merge, or discard this patch.
tests/Functional/SchemaLanguage/SchemaLanguageTest.php 5 patches
Indentation   -166 removed lines patch added patch discarded remove patch
@@ -11,169 +11,3 @@
 block discarded – undo
11 11
     public function testQueryHumans(): void
12 12
     {
13 13
         $query = <<<'QUERY'
14
-            { humans {id name direwolf {id name} } }
15
-            QUERY;
16
-
17
-        $expected = [
18
-            'data' => [
19
-                'humans' => [
20
-                    [
21
-                        'id' => '1',
22
-                        'name' => 'Jon Snow',
23
-                        'direwolf' => ['id' => '7', 'name' => 'Ghost'],
24
-                    ],
25
-                    [
26
-                        'id' => '2',
27
-                        'name' => 'Arya',
28
-                        'direwolf' => ['id' => '8', 'name' => 'Nymeria'],
29
-                    ],
30
-                    [
31
-                        'id' => '3',
32
-                        'name' => 'Bran',
33
-                        'direwolf' => ['id' => '9', 'name' => 'Summer'],
34
-                    ],
35
-                    [
36
-                        'id' => '4',
37
-                        'name' => 'Rickon',
38
-                        'direwolf' => ['id' => '10', 'name' => 'Shaggydog'],
39
-                    ],
40
-                    [
41
-                        'id' => '5',
42
-                        'name' => 'Robb',
43
-                        'direwolf' => ['id' => '11', 'name' => 'Grey Wind'],
44
-                    ],
45
-                    [
46
-                        'id' => '6',
47
-                        'name' => 'Sansa',
48
-                        'direwolf' => ['id' => '12', 'name' => 'Lady'],
49
-                    ],
50
-                ],
51
-            ],
52
-        ];
53
-
54
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
55
-    }
56
-
57
-    public function testQueryDirewolves(): void
58
-    {
59
-        $query = <<<'QUERY'
60
-            { direwolves {name status} }
61
-            QUERY;
62
-
63
-        $expected = [
64
-            'data' => [
65
-                'direwolves' => [
66
-                    ['name' => 'Ghost', 'status' => 'ALIVE'],
67
-                    ['name' => 'Nymeria', 'status' => 'ALIVE'],
68
-                    ['name' => 'Summer', 'status' => 'DECEASED'],
69
-                    ['name' => 'Shaggydog', 'status' => 'DECEASED'],
70
-                    ['name' => 'Grey Wind', 'status' => 'DECEASED'],
71
-                    ['name' => 'Lady', 'status' => 'DECEASED'],
72
-                ],
73
-            ],
74
-        ];
75
-
76
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
77
-    }
78
-
79
-    public function testQueryACharacter(): void
80
-    {
81
-        $query = <<<'QUERY'
82
-            {
83
-              character(id: 1) {
84
-                name
85
-                ...on Human {
86
-                  dateOfBirth
87
-                }
88
-              }
89
-            }
90
-            QUERY;
91
-
92
-        $expected = [
93
-            'data' => [
94
-                'character' => [
95
-                    'name' => 'Jon Snow',
96
-                    'dateOfBirth' => '281 AC',
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
102
-    }
103
-
104
-    public function testQueryHumanByDateOfBirth(): void
105
-    {
106
-        $query = <<<'QUERY'
107
-            {
108
-              findHumansByDateOfBirth(years: ["281 AC", "288 AC"]) {
109
-                name
110
-                dateOfBirth
111
-              }
112
-            }
113
-            QUERY;
114
-
115
-        $expected = [
116
-            'data' => [
117
-                'findHumansByDateOfBirth' => [
118
-                    [
119
-                        'name' => 'Jon Snow',
120
-                        'dateOfBirth' => '281 AC',
121
-                    ],
122
-                    [
123
-                        'name' => 'Bran',
124
-                        'dateOfBirth' => '288 AC',
125
-                    ],
126
-                    [
127
-                        'name' => 'Robb',
128
-                        'dateOfBirth' => '281 AC',
129
-                    ],
130
-                ],
131
-            ],
132
-        ];
133
-
134
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
135
-    }
136
-
137
-    public function testQueryHumanByDateOfBirthUsingVariables(): void
138
-    {
139
-        $query = <<<'QUERY'
140
-            query ($years: [Year!]!) {
141
-              findHumansByDateOfBirth(years: $years) {
142
-                name
143
-                dateOfBirth
144
-              }
145
-            }
146
-            QUERY;
147
-
148
-        $expected = [
149
-            'data' => [
150
-                'findHumansByDateOfBirth' => [
151
-                    [
152
-                        'name' => 'Bran',
153
-                        'dateOfBirth' => '288 AC',
154
-                    ],
155
-                ],
156
-            ],
157
-        ];
158
-
159
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage', null, ['years' => ['288 AC']]);
160
-    }
161
-
162
-    public function testMutation(): void
163
-    {
164
-        $query = <<<'QUERY'
165
-            mutation { resurrectZigZag {name status} }
166
-            QUERY;
167
-
168
-        $expected = [
169
-            'data' => [
170
-                'resurrectZigZag' => [
171
-                    'name' => 'Rickon',
172
-                    'status' => 'ALIVE',
173
-                ],
174
-            ],
175
-        ];
176
-
177
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
178
-    }
179
-}
Please login to merge, or discard this patch.
Switch Indentation   -166 removed lines patch added patch discarded remove patch
@@ -11,169 +11,3 @@
 block discarded – undo
11 11
     public function testQueryHumans(): void
12 12
     {
13 13
         $query = <<<'QUERY'
14
-            { humans {id name direwolf {id name} } }
15
-            QUERY;
16
-
17
-        $expected = [
18
-            'data' => [
19
-                'humans' => [
20
-                    [
21
-                        'id' => '1',
22
-                        'name' => 'Jon Snow',
23
-                        'direwolf' => ['id' => '7', 'name' => 'Ghost'],
24
-                    ],
25
-                    [
26
-                        'id' => '2',
27
-                        'name' => 'Arya',
28
-                        'direwolf' => ['id' => '8', 'name' => 'Nymeria'],
29
-                    ],
30
-                    [
31
-                        'id' => '3',
32
-                        'name' => 'Bran',
33
-                        'direwolf' => ['id' => '9', 'name' => 'Summer'],
34
-                    ],
35
-                    [
36
-                        'id' => '4',
37
-                        'name' => 'Rickon',
38
-                        'direwolf' => ['id' => '10', 'name' => 'Shaggydog'],
39
-                    ],
40
-                    [
41
-                        'id' => '5',
42
-                        'name' => 'Robb',
43
-                        'direwolf' => ['id' => '11', 'name' => 'Grey Wind'],
44
-                    ],
45
-                    [
46
-                        'id' => '6',
47
-                        'name' => 'Sansa',
48
-                        'direwolf' => ['id' => '12', 'name' => 'Lady'],
49
-                    ],
50
-                ],
51
-            ],
52
-        ];
53
-
54
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
55
-    }
56
-
57
-    public function testQueryDirewolves(): void
58
-    {
59
-        $query = <<<'QUERY'
60
-            { direwolves {name status} }
61
-            QUERY;
62
-
63
-        $expected = [
64
-            'data' => [
65
-                'direwolves' => [
66
-                    ['name' => 'Ghost', 'status' => 'ALIVE'],
67
-                    ['name' => 'Nymeria', 'status' => 'ALIVE'],
68
-                    ['name' => 'Summer', 'status' => 'DECEASED'],
69
-                    ['name' => 'Shaggydog', 'status' => 'DECEASED'],
70
-                    ['name' => 'Grey Wind', 'status' => 'DECEASED'],
71
-                    ['name' => 'Lady', 'status' => 'DECEASED'],
72
-                ],
73
-            ],
74
-        ];
75
-
76
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
77
-    }
78
-
79
-    public function testQueryACharacter(): void
80
-    {
81
-        $query = <<<'QUERY'
82
-            {
83
-              character(id: 1) {
84
-                name
85
-                ...on Human {
86
-                  dateOfBirth
87
-                }
88
-              }
89
-            }
90
-            QUERY;
91
-
92
-        $expected = [
93
-            'data' => [
94
-                'character' => [
95
-                    'name' => 'Jon Snow',
96
-                    'dateOfBirth' => '281 AC',
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
102
-    }
103
-
104
-    public function testQueryHumanByDateOfBirth(): void
105
-    {
106
-        $query = <<<'QUERY'
107
-            {
108
-              findHumansByDateOfBirth(years: ["281 AC", "288 AC"]) {
109
-                name
110
-                dateOfBirth
111
-              }
112
-            }
113
-            QUERY;
114
-
115
-        $expected = [
116
-            'data' => [
117
-                'findHumansByDateOfBirth' => [
118
-                    [
119
-                        'name' => 'Jon Snow',
120
-                        'dateOfBirth' => '281 AC',
121
-                    ],
122
-                    [
123
-                        'name' => 'Bran',
124
-                        'dateOfBirth' => '288 AC',
125
-                    ],
126
-                    [
127
-                        'name' => 'Robb',
128
-                        'dateOfBirth' => '281 AC',
129
-                    ],
130
-                ],
131
-            ],
132
-        ];
133
-
134
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
135
-    }
136
-
137
-    public function testQueryHumanByDateOfBirthUsingVariables(): void
138
-    {
139
-        $query = <<<'QUERY'
140
-            query ($years: [Year!]!) {
141
-              findHumansByDateOfBirth(years: $years) {
142
-                name
143
-                dateOfBirth
144
-              }
145
-            }
146
-            QUERY;
147
-
148
-        $expected = [
149
-            'data' => [
150
-                'findHumansByDateOfBirth' => [
151
-                    [
152
-                        'name' => 'Bran',
153
-                        'dateOfBirth' => '288 AC',
154
-                    ],
155
-                ],
156
-            ],
157
-        ];
158
-
159
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage', null, ['years' => ['288 AC']]);
160
-    }
161
-
162
-    public function testMutation(): void
163
-    {
164
-        $query = <<<'QUERY'
165
-            mutation { resurrectZigZag {name status} }
166
-            QUERY;
167
-
168
-        $expected = [
169
-            'data' => [
170
-                'resurrectZigZag' => [
171
-                    'name' => 'Rickon',
172
-                    'status' => 'ALIVE',
173
-                ],
174
-            ],
175
-        ];
176
-
177
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
178
-    }
179
-}
Please login to merge, or discard this patch.
Spacing   -166 removed lines patch added patch discarded remove patch
@@ -11,169 +11,3 @@
 block discarded – undo
11 11
     public function testQueryHumans(): void
12 12
     {
13 13
         $query = <<<'QUERY'
14
-            { humans {id name direwolf {id name} } }
15
-            QUERY;
16
-
17
-        $expected = [
18
-            'data' => [
19
-                'humans' => [
20
-                    [
21
-                        'id' => '1',
22
-                        'name' => 'Jon Snow',
23
-                        'direwolf' => ['id' => '7', 'name' => 'Ghost'],
24
-                    ],
25
-                    [
26
-                        'id' => '2',
27
-                        'name' => 'Arya',
28
-                        'direwolf' => ['id' => '8', 'name' => 'Nymeria'],
29
-                    ],
30
-                    [
31
-                        'id' => '3',
32
-                        'name' => 'Bran',
33
-                        'direwolf' => ['id' => '9', 'name' => 'Summer'],
34
-                    ],
35
-                    [
36
-                        'id' => '4',
37
-                        'name' => 'Rickon',
38
-                        'direwolf' => ['id' => '10', 'name' => 'Shaggydog'],
39
-                    ],
40
-                    [
41
-                        'id' => '5',
42
-                        'name' => 'Robb',
43
-                        'direwolf' => ['id' => '11', 'name' => 'Grey Wind'],
44
-                    ],
45
-                    [
46
-                        'id' => '6',
47
-                        'name' => 'Sansa',
48
-                        'direwolf' => ['id' => '12', 'name' => 'Lady'],
49
-                    ],
50
-                ],
51
-            ],
52
-        ];
53
-
54
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
55
-    }
56
-
57
-    public function testQueryDirewolves(): void
58
-    {
59
-        $query = <<<'QUERY'
60
-            { direwolves {name status} }
61
-            QUERY;
62
-
63
-        $expected = [
64
-            'data' => [
65
-                'direwolves' => [
66
-                    ['name' => 'Ghost', 'status' => 'ALIVE'],
67
-                    ['name' => 'Nymeria', 'status' => 'ALIVE'],
68
-                    ['name' => 'Summer', 'status' => 'DECEASED'],
69
-                    ['name' => 'Shaggydog', 'status' => 'DECEASED'],
70
-                    ['name' => 'Grey Wind', 'status' => 'DECEASED'],
71
-                    ['name' => 'Lady', 'status' => 'DECEASED'],
72
-                ],
73
-            ],
74
-        ];
75
-
76
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
77
-    }
78
-
79
-    public function testQueryACharacter(): void
80
-    {
81
-        $query = <<<'QUERY'
82
-            {
83
-              character(id: 1) {
84
-                name
85
-                ...on Human {
86
-                  dateOfBirth
87
-                }
88
-              }
89
-            }
90
-            QUERY;
91
-
92
-        $expected = [
93
-            'data' => [
94
-                'character' => [
95
-                    'name' => 'Jon Snow',
96
-                    'dateOfBirth' => '281 AC',
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
102
-    }
103
-
104
-    public function testQueryHumanByDateOfBirth(): void
105
-    {
106
-        $query = <<<'QUERY'
107
-            {
108
-              findHumansByDateOfBirth(years: ["281 AC", "288 AC"]) {
109
-                name
110
-                dateOfBirth
111
-              }
112
-            }
113
-            QUERY;
114
-
115
-        $expected = [
116
-            'data' => [
117
-                'findHumansByDateOfBirth' => [
118
-                    [
119
-                        'name' => 'Jon Snow',
120
-                        'dateOfBirth' => '281 AC',
121
-                    ],
122
-                    [
123
-                        'name' => 'Bran',
124
-                        'dateOfBirth' => '288 AC',
125
-                    ],
126
-                    [
127
-                        'name' => 'Robb',
128
-                        'dateOfBirth' => '281 AC',
129
-                    ],
130
-                ],
131
-            ],
132
-        ];
133
-
134
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
135
-    }
136
-
137
-    public function testQueryHumanByDateOfBirthUsingVariables(): void
138
-    {
139
-        $query = <<<'QUERY'
140
-            query ($years: [Year!]!) {
141
-              findHumansByDateOfBirth(years: $years) {
142
-                name
143
-                dateOfBirth
144
-              }
145
-            }
146
-            QUERY;
147
-
148
-        $expected = [
149
-            'data' => [
150
-                'findHumansByDateOfBirth' => [
151
-                    [
152
-                        'name' => 'Bran',
153
-                        'dateOfBirth' => '288 AC',
154
-                    ],
155
-                ],
156
-            ],
157
-        ];
158
-
159
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage', null, ['years' => ['288 AC']]);
160
-    }
161
-
162
-    public function testMutation(): void
163
-    {
164
-        $query = <<<'QUERY'
165
-            mutation { resurrectZigZag {name status} }
166
-            QUERY;
167
-
168
-        $expected = [
169
-            'data' => [
170
-                'resurrectZigZag' => [
171
-                    'name' => 'Rickon',
172
-                    'status' => 'ALIVE',
173
-                ],
174
-            ],
175
-        ];
176
-
177
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
178
-    }
179
-}
Please login to merge, or discard this patch.
Braces   -166 removed lines patch added patch discarded remove patch
@@ -11,169 +11,3 @@
 block discarded – undo
11 11
     public function testQueryHumans(): void
12 12
     {
13 13
         $query = <<<'QUERY'
14
-            { humans {id name direwolf {id name} } }
15
-            QUERY;
16
-
17
-        $expected = [
18
-            'data' => [
19
-                'humans' => [
20
-                    [
21
-                        'id' => '1',
22
-                        'name' => 'Jon Snow',
23
-                        'direwolf' => ['id' => '7', 'name' => 'Ghost'],
24
-                    ],
25
-                    [
26
-                        'id' => '2',
27
-                        'name' => 'Arya',
28
-                        'direwolf' => ['id' => '8', 'name' => 'Nymeria'],
29
-                    ],
30
-                    [
31
-                        'id' => '3',
32
-                        'name' => 'Bran',
33
-                        'direwolf' => ['id' => '9', 'name' => 'Summer'],
34
-                    ],
35
-                    [
36
-                        'id' => '4',
37
-                        'name' => 'Rickon',
38
-                        'direwolf' => ['id' => '10', 'name' => 'Shaggydog'],
39
-                    ],
40
-                    [
41
-                        'id' => '5',
42
-                        'name' => 'Robb',
43
-                        'direwolf' => ['id' => '11', 'name' => 'Grey Wind'],
44
-                    ],
45
-                    [
46
-                        'id' => '6',
47
-                        'name' => 'Sansa',
48
-                        'direwolf' => ['id' => '12', 'name' => 'Lady'],
49
-                    ],
50
-                ],
51
-            ],
52
-        ];
53
-
54
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
55
-    }
56
-
57
-    public function testQueryDirewolves(): void
58
-    {
59
-        $query = <<<'QUERY'
60
-            { direwolves {name status} }
61
-            QUERY;
62
-
63
-        $expected = [
64
-            'data' => [
65
-                'direwolves' => [
66
-                    ['name' => 'Ghost', 'status' => 'ALIVE'],
67
-                    ['name' => 'Nymeria', 'status' => 'ALIVE'],
68
-                    ['name' => 'Summer', 'status' => 'DECEASED'],
69
-                    ['name' => 'Shaggydog', 'status' => 'DECEASED'],
70
-                    ['name' => 'Grey Wind', 'status' => 'DECEASED'],
71
-                    ['name' => 'Lady', 'status' => 'DECEASED'],
72
-                ],
73
-            ],
74
-        ];
75
-
76
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
77
-    }
78
-
79
-    public function testQueryACharacter(): void
80
-    {
81
-        $query = <<<'QUERY'
82
-            {
83
-              character(id: 1) {
84
-                name
85
-                ...on Human {
86
-                  dateOfBirth
87
-                }
88
-              }
89
-            }
90
-            QUERY;
91
-
92
-        $expected = [
93
-            'data' => [
94
-                'character' => [
95
-                    'name' => 'Jon Snow',
96
-                    'dateOfBirth' => '281 AC',
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
102
-    }
103
-
104
-    public function testQueryHumanByDateOfBirth(): void
105
-    {
106
-        $query = <<<'QUERY'
107
-            {
108
-              findHumansByDateOfBirth(years: ["281 AC", "288 AC"]) {
109
-                name
110
-                dateOfBirth
111
-              }
112
-            }
113
-            QUERY;
114
-
115
-        $expected = [
116
-            'data' => [
117
-                'findHumansByDateOfBirth' => [
118
-                    [
119
-                        'name' => 'Jon Snow',
120
-                        'dateOfBirth' => '281 AC',
121
-                    ],
122
-                    [
123
-                        'name' => 'Bran',
124
-                        'dateOfBirth' => '288 AC',
125
-                    ],
126
-                    [
127
-                        'name' => 'Robb',
128
-                        'dateOfBirth' => '281 AC',
129
-                    ],
130
-                ],
131
-            ],
132
-        ];
133
-
134
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
135
-    }
136
-
137
-    public function testQueryHumanByDateOfBirthUsingVariables(): void
138
-    {
139
-        $query = <<<'QUERY'
140
-            query ($years: [Year!]!) {
141
-              findHumansByDateOfBirth(years: $years) {
142
-                name
143
-                dateOfBirth
144
-              }
145
-            }
146
-            QUERY;
147
-
148
-        $expected = [
149
-            'data' => [
150
-                'findHumansByDateOfBirth' => [
151
-                    [
152
-                        'name' => 'Bran',
153
-                        'dateOfBirth' => '288 AC',
154
-                    ],
155
-                ],
156
-            ],
157
-        ];
158
-
159
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage', null, ['years' => ['288 AC']]);
160
-    }
161
-
162
-    public function testMutation(): void
163
-    {
164
-        $query = <<<'QUERY'
165
-            mutation { resurrectZigZag {name status} }
166
-            QUERY;
167
-
168
-        $expected = [
169
-            'data' => [
170
-                'resurrectZigZag' => [
171
-                    'name' => 'Rickon',
172
-                    'status' => 'ALIVE',
173
-                ],
174
-            ],
175
-        ];
176
-
177
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
178
-    }
179
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -166 removed lines patch added patch discarded remove patch
@@ -11,169 +11,3 @@
 block discarded – undo
11 11
     public function testQueryHumans(): void
12 12
     {
13 13
         $query = <<<'QUERY'
14
-            { humans {id name direwolf {id name} } }
15
-            QUERY;
16
-
17
-        $expected = [
18
-            'data' => [
19
-                'humans' => [
20
-                    [
21
-                        'id' => '1',
22
-                        'name' => 'Jon Snow',
23
-                        'direwolf' => ['id' => '7', 'name' => 'Ghost'],
24
-                    ],
25
-                    [
26
-                        'id' => '2',
27
-                        'name' => 'Arya',
28
-                        'direwolf' => ['id' => '8', 'name' => 'Nymeria'],
29
-                    ],
30
-                    [
31
-                        'id' => '3',
32
-                        'name' => 'Bran',
33
-                        'direwolf' => ['id' => '9', 'name' => 'Summer'],
34
-                    ],
35
-                    [
36
-                        'id' => '4',
37
-                        'name' => 'Rickon',
38
-                        'direwolf' => ['id' => '10', 'name' => 'Shaggydog'],
39
-                    ],
40
-                    [
41
-                        'id' => '5',
42
-                        'name' => 'Robb',
43
-                        'direwolf' => ['id' => '11', 'name' => 'Grey Wind'],
44
-                    ],
45
-                    [
46
-                        'id' => '6',
47
-                        'name' => 'Sansa',
48
-                        'direwolf' => ['id' => '12', 'name' => 'Lady'],
49
-                    ],
50
-                ],
51
-            ],
52
-        ];
53
-
54
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
55
-    }
56
-
57
-    public function testQueryDirewolves(): void
58
-    {
59
-        $query = <<<'QUERY'
60
-            { direwolves {name status} }
61
-            QUERY;
62
-
63
-        $expected = [
64
-            'data' => [
65
-                'direwolves' => [
66
-                    ['name' => 'Ghost', 'status' => 'ALIVE'],
67
-                    ['name' => 'Nymeria', 'status' => 'ALIVE'],
68
-                    ['name' => 'Summer', 'status' => 'DECEASED'],
69
-                    ['name' => 'Shaggydog', 'status' => 'DECEASED'],
70
-                    ['name' => 'Grey Wind', 'status' => 'DECEASED'],
71
-                    ['name' => 'Lady', 'status' => 'DECEASED'],
72
-                ],
73
-            ],
74
-        ];
75
-
76
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
77
-    }
78
-
79
-    public function testQueryACharacter(): void
80
-    {
81
-        $query = <<<'QUERY'
82
-            {
83
-              character(id: 1) {
84
-                name
85
-                ...on Human {
86
-                  dateOfBirth
87
-                }
88
-              }
89
-            }
90
-            QUERY;
91
-
92
-        $expected = [
93
-            'data' => [
94
-                'character' => [
95
-                    'name' => 'Jon Snow',
96
-                    'dateOfBirth' => '281 AC',
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
102
-    }
103
-
104
-    public function testQueryHumanByDateOfBirth(): void
105
-    {
106
-        $query = <<<'QUERY'
107
-            {
108
-              findHumansByDateOfBirth(years: ["281 AC", "288 AC"]) {
109
-                name
110
-                dateOfBirth
111
-              }
112
-            }
113
-            QUERY;
114
-
115
-        $expected = [
116
-            'data' => [
117
-                'findHumansByDateOfBirth' => [
118
-                    [
119
-                        'name' => 'Jon Snow',
120
-                        'dateOfBirth' => '281 AC',
121
-                    ],
122
-                    [
123
-                        'name' => 'Bran',
124
-                        'dateOfBirth' => '288 AC',
125
-                    ],
126
-                    [
127
-                        'name' => 'Robb',
128
-                        'dateOfBirth' => '281 AC',
129
-                    ],
130
-                ],
131
-            ],
132
-        ];
133
-
134
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
135
-    }
136
-
137
-    public function testQueryHumanByDateOfBirthUsingVariables(): void
138
-    {
139
-        $query = <<<'QUERY'
140
-            query ($years: [Year!]!) {
141
-              findHumansByDateOfBirth(years: $years) {
142
-                name
143
-                dateOfBirth
144
-              }
145
-            }
146
-            QUERY;
147
-
148
-        $expected = [
149
-            'data' => [
150
-                'findHumansByDateOfBirth' => [
151
-                    [
152
-                        'name' => 'Bran',
153
-                        'dateOfBirth' => '288 AC',
154
-                    ],
155
-                ],
156
-            ],
157
-        ];
158
-
159
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage', null, ['years' => ['288 AC']]);
160
-    }
161
-
162
-    public function testMutation(): void
163
-    {
164
-        $query = <<<'QUERY'
165
-            mutation { resurrectZigZag {name status} }
166
-            QUERY;
167
-
168
-        $expected = [
169
-            'data' => [
170
-                'resurrectZigZag' => [
171
-                    'name' => 'Rickon',
172
-                    'status' => 'ALIVE',
173
-                ],
174
-            ],
175
-        ];
176
-
177
-        $this->assertResponse($query, $expected, static::ANONYMOUS_USER, 'schemaLanguage');
178
-    }
179
-}
Please login to merge, or discard this patch.
tests/Functional/Command/GraphDumpSchemaCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
             $data = &$entries['__schema'][$entryKey];
149 149
         }
150 150
 
151
-        usort($data, fn ($data1, $data2) => strcmp($data1[$sortBy], $data2[$sortBy]));
151
+        usort($data, fn($data1, $data2) => strcmp($data1[$sortBy], $data2[$sortBy]));
152 152
     }
153 153
 }
Please login to merge, or discard this patch.
tests/Functional/Command/CompileCommandTest.php 5 patches
Indentation   -30 removed lines patch added patch discarded remove patch
@@ -67,33 +67,3 @@
 block discarded – undo
67 67
     private function displayExpected(bool $isVerbose = false): string
68 68
     {
69 69
         $display = <<<'OUTPUT'
70
-            Types compilation starts
71
-            Types compilation ends successfully
72
-
73
-            OUTPUT;
74
-
75
-        if ($isVerbose) {
76
-            $display .= <<<'OUTPUT'
77
-
78
-                Summary
79
-                =======
80
-
81
-                 \-[\-]+\s+\-[\-]+\s
82
-                  class\s+path\s*
83
-                 \-[\-]+\s+\-[\-]+\s
84
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType              {{PATH}}/QueryType\.php
85
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType               {{PATH}}/UserType\.php
86
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType   {{PATH}}/friendConnectionType\.php
87
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType     {{PATH}}/userConnectionType\.php
88
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType           {{PATH}}/PageInfoType\.php
89
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType         {{PATH}}/friendEdgeType\.php
90
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType           {{PATH}}/userEdgeType\.php
91
-                 \-[\-]+\s+\-[\-]+\s
92
-                OUTPUT;
93
-
94
-            $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display);
95
-        }
96
-
97
-        return str_replace("\n", PHP_EOL, $display);
98
-    }
99
-}
Please login to merge, or discard this patch.
Switch Indentation   -30 removed lines patch added patch discarded remove patch
@@ -67,33 +67,3 @@
 block discarded – undo
67 67
     private function displayExpected(bool $isVerbose = false): string
68 68
     {
69 69
         $display = <<<'OUTPUT'
70
-            Types compilation starts
71
-            Types compilation ends successfully
72
-
73
-            OUTPUT;
74
-
75
-        if ($isVerbose) {
76
-            $display .= <<<'OUTPUT'
77
-
78
-                Summary
79
-                =======
80
-
81
-                 \-[\-]+\s+\-[\-]+\s
82
-                  class\s+path\s*
83
-                 \-[\-]+\s+\-[\-]+\s
84
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType              {{PATH}}/QueryType\.php
85
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType               {{PATH}}/UserType\.php
86
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType   {{PATH}}/friendConnectionType\.php
87
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType     {{PATH}}/userConnectionType\.php
88
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType           {{PATH}}/PageInfoType\.php
89
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType         {{PATH}}/friendEdgeType\.php
90
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType           {{PATH}}/userEdgeType\.php
91
-                 \-[\-]+\s+\-[\-]+\s
92
-                OUTPUT;
93
-
94
-            $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display);
95
-        }
96
-
97
-        return str_replace("\n", PHP_EOL, $display);
98
-    }
99
-}
Please login to merge, or discard this patch.
Spacing   -30 removed lines patch added patch discarded remove patch
@@ -67,33 +67,3 @@
 block discarded – undo
67 67
     private function displayExpected(bool $isVerbose = false): string
68 68
     {
69 69
         $display = <<<'OUTPUT'
70
-            Types compilation starts
71
-            Types compilation ends successfully
72
-
73
-            OUTPUT;
74
-
75
-        if ($isVerbose) {
76
-            $display .= <<<'OUTPUT'
77
-
78
-                Summary
79
-                =======
80
-
81
-                 \-[\-]+\s+\-[\-]+\s
82
-                  class\s+path\s*
83
-                 \-[\-]+\s+\-[\-]+\s
84
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType              {{PATH}}/QueryType\.php
85
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType               {{PATH}}/UserType\.php
86
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType   {{PATH}}/friendConnectionType\.php
87
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType     {{PATH}}/userConnectionType\.php
88
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType           {{PATH}}/PageInfoType\.php
89
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType         {{PATH}}/friendEdgeType\.php
90
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType           {{PATH}}/userEdgeType\.php
91
-                 \-[\-]+\s+\-[\-]+\s
92
-                OUTPUT;
93
-
94
-            $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display);
95
-        }
96
-
97
-        return str_replace("\n", PHP_EOL, $display);
98
-    }
99
-}
Please login to merge, or discard this patch.
Braces   -30 removed lines patch added patch discarded remove patch
@@ -67,33 +67,3 @@
 block discarded – undo
67 67
     private function displayExpected(bool $isVerbose = false): string
68 68
     {
69 69
         $display = <<<'OUTPUT'
70
-            Types compilation starts
71
-            Types compilation ends successfully
72
-
73
-            OUTPUT;
74
-
75
-        if ($isVerbose) {
76
-            $display .= <<<'OUTPUT'
77
-
78
-                Summary
79
-                =======
80
-
81
-                 \-[\-]+\s+\-[\-]+\s
82
-                  class\s+path\s*
83
-                 \-[\-]+\s+\-[\-]+\s
84
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType              {{PATH}}/QueryType\.php
85
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType               {{PATH}}/UserType\.php
86
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType   {{PATH}}/friendConnectionType\.php
87
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType     {{PATH}}/userConnectionType\.php
88
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType           {{PATH}}/PageInfoType\.php
89
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType         {{PATH}}/friendEdgeType\.php
90
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType           {{PATH}}/userEdgeType\.php
91
-                 \-[\-]+\s+\-[\-]+\s
92
-                OUTPUT;
93
-
94
-            $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display);
95
-        }
96
-
97
-        return str_replace("\n", PHP_EOL, $display);
98
-    }
99
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -30 removed lines patch added patch discarded remove patch
@@ -67,33 +67,3 @@
 block discarded – undo
67 67
     private function displayExpected(bool $isVerbose = false): string
68 68
     {
69 69
         $display = <<<'OUTPUT'
70
-            Types compilation starts
71
-            Types compilation ends successfully
72
-
73
-            OUTPUT;
74
-
75
-        if ($isVerbose) {
76
-            $display .= <<<'OUTPUT'
77
-
78
-                Summary
79
-                =======
80
-
81
-                 \-[\-]+\s+\-[\-]+\s
82
-                  class\s+path\s*
83
-                 \-[\-]+\s+\-[\-]+\s
84
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType              {{PATH}}/QueryType\.php
85
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType               {{PATH}}/UserType\.php
86
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType   {{PATH}}/friendConnectionType\.php
87
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType     {{PATH}}/userConnectionType\.php
88
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType           {{PATH}}/PageInfoType\.php
89
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType         {{PATH}}/friendEdgeType\.php
90
-                  Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType           {{PATH}}/userEdgeType\.php
91
-                 \-[\-]+\s+\-[\-]+\s
92
-                OUTPUT;
93
-
94
-            $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display);
95
-        }
96
-
97
-        return str_replace("\n", PHP_EOL, $display);
98
-    }
99
-}
Please login to merge, or discard this patch.
tests/Functional/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
             return call_user_func([ExpressionFunction::class, 'fromPhp'], $phpFunctionName);
159 159
         }
160 160
 
161
-        return new ExpressionFunction($phpFunctionName, fn () => (
161
+        return new ExpressionFunction($phpFunctionName, fn() => (
162 162
             sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args()))
163 163
         ), function (): void {});
164 164
     }
Please login to merge, or discard this patch.
tests/Functional/App/Resolver/Characters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,6 +123,6 @@
 block discarded – undo
123 123
 
124 124
     private static function findByType(string $type): array
125 125
     {
126
-        return array_filter(self::$characters, fn ($character) => $type === $character['type']);
126
+        return array_filter(self::$characters, fn($character) => $type === $character['type']);
127 127
     }
128 128
 }
Please login to merge, or discard this patch.