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

Test Failed
Pull Request — master (#971)
by Ruud
01:35
created
src/Validator/Constraints/ExpressionValidator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
 
55 55
         if (!$this->expressionLanguage->evaluate($constraint->expression, $variables)) {
56 56
             $this->context->buildViolation($constraint->message)
57
-                          ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING))
58
-                          ->setCode(Expression::EXPRESSION_FAILED_ERROR)
59
-                          ->addViolation();
57
+                            ->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING))
58
+                            ->setCode(Expression::EXPRESSION_FAILED_ERROR)
59
+                            ->addViolation();
60 60
         }
61 61
     }
62 62
 
Please login to merge, or discard this patch.
tests/Functional/MultipleQueries/MultipleQueriesTest.php 1 patch
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.
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 1 patch
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.
tests/Functional/Command/CompileCommandTest.php 1 patch
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.
tests/Functional/Relay/Mutation/MutationTest.php 1 patch
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -281,6 +281,4 @@
 block discarded – undo
281 281
             ],
282 282
         ];
283 283
 
284
-        $this->assertGraphQL($query, $expectedData);
285
-    }
286
-}
284
+        $this->assertGraphQL($query, $expectedData
287 285
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Functional/Relay/Node/GlobalTest.php 1 patch
Indentation   -78 removed lines patch added patch discarded remove patch
@@ -22,81 +22,3 @@
 block discarded – undo
22 22
     public function testGlobalIdFields(): void
23 23
     {
24 24
         $query = <<<'EOF'
25
-            {
26
-              allObjects {
27
-                id
28
-              }
29
-            }
30
-            EOF;
31
-
32
-        $expectedData = [
33
-            'allObjects' => [
34
-                [
35
-                    'id' => 'VXNlcjox',
36
-                ],
37
-                [
38
-                    'id' => 'VXNlcjoy',
39
-                ],
40
-                [
41
-                    'id' => 'UGhvdG86MQ==',
42
-                ],
43
-                [
44
-                    'id' => 'UGhvdG86Mg==',
45
-                ],
46
-                [
47
-                    'id' => 'UG9zdDox',
48
-                ],
49
-                [
50
-                    'id' => 'UG9zdDoy',
51
-                ],
52
-            ],
53
-        ];
54
-
55
-        $this->assertGraphQL($query, $expectedData);
56
-    }
57
-
58
-    public function testReFetchesTheIds(): void
59
-    {
60
-        $query = <<<'EOF'
61
-            {
62
-              user: node(id: "VXNlcjox") {
63
-                id
64
-                ... on User {
65
-                  name
66
-                }
67
-              },
68
-              photo: node(id: "UGhvdG86MQ==") {
69
-                id
70
-                ... on Photo {
71
-                  width
72
-                }
73
-              },
74
-              post: node(id: "UG9zdDox") {
75
-                id
76
-                ... on Post {
77
-                  text
78
-                  status
79
-                }
80
-              }
81
-            }
82
-            EOF;
83
-
84
-        $expectedData = [
85
-            'user' => [
86
-                'id' => 'VXNlcjox',
87
-                'name' => 'John Doe',
88
-            ],
89
-            'photo' => [
90
-                'id' => 'UGhvdG86MQ==',
91
-                'width' => 300,
92
-            ],
93
-            'post' => [
94
-                'id' => 'UG9zdDox',
95
-                'text' => 'lorem',
96
-                'status' => 'DRAFT',
97
-            ],
98
-        ];
99
-
100
-        $this->assertGraphQL($query, $expectedData);
101
-    }
102
-}
Please login to merge, or discard this patch.
tests/Functional/Relay/Node/PluralTest.php 1 patch
Indentation   -105 removed lines patch added patch discarded remove patch
@@ -23,108 +23,3 @@
 block discarded – undo
23 23
     public function testNodeInterfaceAndFields(): void
24 24
     {
25 25
         $query = <<<'EOF'
26
-            {
27
-                  usernames(usernames:["dschafer", "leebyron", "schrockn"]) {
28
-                    username
29
-                    url
30
-                  }
31
-                }
32
-            EOF;
33
-
34
-        $expectedData = [
35
-            'usernames' => [
36
-                [
37
-                    'username' => 'dschafer',
38
-                    'url' => 'www.facebook.com/dschafer?lang=en',
39
-                ],
40
-                [
41
-                    'username' => 'leebyron',
42
-                    'url' => 'www.facebook.com/leebyron?lang=en',
43
-                ],
44
-                [
45
-                    'username' => 'schrockn',
46
-                    'url' => 'www.facebook.com/schrockn?lang=en',
47
-                ],
48
-            ],
49
-        ];
50
-
51
-        $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']);
52
-    }
53
-
54
-    public function testCorrectlyIntrospects(): void
55
-    {
56
-        $query = <<<'EOF'
57
-            {
58
-                  __schema {
59
-                    queryType {
60
-                      fields {
61
-                        name
62
-                        args {
63
-                          name
64
-                          type {
65
-                            kind
66
-                            ofType {
67
-                              kind
68
-                              ofType {
69
-                                kind
70
-                                ofType {
71
-                                  name
72
-                                  kind
73
-                                }
74
-                              }
75
-                            }
76
-                          }
77
-                        }
78
-                        type {
79
-                          kind
80
-                          ofType {
81
-                            name
82
-                            kind
83
-                          }
84
-                        }
85
-                      }
86
-                    }
87
-                  }
88
-                }
89
-            EOF;
90
-
91
-        $expectedData = [
92
-            '__schema' => [
93
-                'queryType' => [
94
-                    'fields' => [
95
-                        [
96
-                            'name' => 'usernames',
97
-                            'args' => [
98
-                                [
99
-                                    'name' => 'usernames',
100
-                                    'type' => [
101
-                                        'kind' => 'NON_NULL',
102
-                                        'ofType' => [
103
-                                            'kind' => 'LIST',
104
-                                            'ofType' => [
105
-                                                'kind' => 'NON_NULL',
106
-                                                'ofType' => [
107
-                                                    'name' => 'String',
108
-                                                    'kind' => 'SCALAR',
109
-                                                ],
110
-                                            ],
111
-                                        ],
112
-                                    ],
113
-                                ],
114
-                            ],
115
-                            'type' => [
116
-                                'kind' => 'LIST',
117
-                                'ofType' => [
118
-                                    'name' => 'User',
119
-                                    'kind' => 'OBJECT',
120
-                                ],
121
-                            ],
122
-                        ],
123
-                    ],
124
-                ],
125
-            ],
126
-        ];
127
-
128
-        $this->assertGraphQL($query, $expectedData);
129
-    }
130
-}
Please login to merge, or discard this patch.
tests/Functional/Relay/Connection/ConnectionTest.php 1 patch
Indentation   -116 removed lines patch added patch discarded remove patch
@@ -23,119 +23,3 @@
 block discarded – undo
23 23
     public function testIncludesConnectionAndEdgeFields(): void
24 24
     {
25 25
         $query = <<<'EOF'
26
-            query FriendsQuery {
27
-              user {
28
-                friends(first: 2) {
29
-                  totalCount
30
-                  edges {
31
-                    friendshipTime
32
-                    node {
33
-                      name
34
-                    }
35
-                  }
36
-                }
37
-              }
38
-            }
39
-            EOF;
40
-
41
-        $expectedData = [
42
-            'user' => [
43
-                'friends' => [
44
-                    'totalCount' => 4,
45
-                    'edges' => [
46
-                        [
47
-                            'friendshipTime' => 'Yesterday',
48
-                            'node' => [
49
-                                'name' => 'Nick',
50
-                            ],
51
-                        ],
52
-                        [
53
-                            'friendshipTime' => 'Yesterday',
54
-                            'node' => [
55
-                                'name' => 'Lee',
56
-                            ],
57
-                        ],
58
-                    ],
59
-                ],
60
-            ],
61
-        ];
62
-
63
-        $this->assertGraphQL($query, $expectedData);
64
-    }
65
-
66
-    public function testWorksWithForwardConnectionArgs(): void
67
-    {
68
-        $query = <<<'EOF'
69
-            query FriendsQuery {
70
-              user {
71
-                friendsForward(first: 2) {
72
-                  edges {
73
-                    node {
74
-                      name
75
-                    }
76
-                  }
77
-                }
78
-              }
79
-            }
80
-            EOF;
81
-
82
-        $expectedData = [
83
-            'user' => [
84
-                'friendsForward' => [
85
-                    'edges' => [
86
-                        [
87
-                            'node' => [
88
-                                'name' => 'Nick',
89
-                            ],
90
-                        ],
91
-                        [
92
-                            'node' => [
93
-                                'name' => 'Lee',
94
-                            ],
95
-                        ],
96
-                    ],
97
-                ],
98
-            ],
99
-        ];
100
-
101
-        $this->assertGraphQL($query, $expectedData);
102
-    }
103
-
104
-    public function testWorksWithBackwardConnectionArgs(): void
105
-    {
106
-        $query = <<<'EOF'
107
-                  query FriendsQuery {
108
-                    user {
109
-                      friendsBackward(last: 2) {
110
-                        edges {
111
-                          node {
112
-                            name
113
-                          }
114
-                        }
115
-                      }
116
-                    }
117
-                  }
118
-            EOF;
119
-
120
-        $expectedData = [
121
-            'user' => [
122
-                'friendsBackward' => [
123
-                    'edges' => [
124
-                        [
125
-                            'node' => [
126
-                                'name' => 'Joe',
127
-                            ],
128
-                        ],
129
-                        [
130
-                            'node' => [
131
-                                'name' => 'Tim',
132
-                            ],
133
-                        ],
134
-                    ],
135
-                ],
136
-            ],
137
-        ];
138
-
139
-        $this->assertGraphQL($query, $expectedData);
140
-    }
141
-}
Please login to merge, or discard this patch.