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

Code Duplication    Length = 18-24 lines in 4 locations

Tests/Functional/Security/AccessTest.php 4 locations

@@ 60-77 (lines=18) @@
57
}
58
EOF;
59
60
    public function testNotAuthenticatedUserAccessToUserName()
61
    {
62
        $expected = [
63
            'data' => [
64
                'user' => [
65
                    'name' => null,
66
                ],
67
            ],
68
            'errors' => [
69
                [
70
                    'message' => 'Access denied to this field.',
71
                    'locations' => [['line' => 1, 'column' => 24]],
72
                ],
73
            ],
74
        ];
75
76
        $this->assertResponse($this->userNameQuery, $expected, static::ANONYMOUS_USER);
77
    }
78
79
    public function testFullyAuthenticatedUserAccessToUserName()
80
    {
@@ 133-150 (lines=18) @@
130
        $this->assertResponse($this->userFriendsQuery, $expected, static::USER_ADMIN);
131
    }
132
133
    public function testUserAccessToUserIsEnabledWithExpressionLanguageEvaluationFailed()
134
    {
135
        $expected = [
136
            'data' => [
137
                'user' => [
138
                    'isEnabled' => null,
139
                ],
140
            ],
141
            'errors' => [
142
                [
143
                    'message' => 'Access denied to this field.',
144
                    'locations' => [['line' => 1, 'column' => 24]],
145
                ],
146
            ],
147
        ];
148
149
        $this->assertResponse($this->userIsEnabledQuery, $expected, static::USER_ADMIN);
150
    }
151
152
    public function testReturnTheSameClientMutationIdForAdmin()
153
    {
@@ 166-189 (lines=24) @@
163
        $this->assertResponse($this->simpleMutationQuery, $expected, static::USER_ADMIN);
164
    }
165
166
    public function testReturnTheSameClientMutationIdForRyanDontHasRightsToDisplayPayloadResultField()
167
    {
168
        $expected = [
169
            'data' => [
170
                'simpleMutation' => [
171
                    'result' => null,
172
                    'clientMutationId' => 'bac',
173
                ],
174
            ],
175
            'errors' => [
176
                [
177
                    'message' => 'Access denied to this field.',
178
                    "locations" => [
179
                        [
180
                            "line" => 3,
181
                            "column" => 5,
182
                        ]
183
                    ]
184
                ],
185
            ],
186
        ];
187
188
        $this->assertResponse($this->simpleMutationQuery, $expected, static::USER_RYAN);
189
    }
190
191
    public function testReturnTheSameClientMutationIdForAnonymousUserDontHasRightToMutateSimpleMutation()
192
    {
@@ 191-211 (lines=21) @@
188
        $this->assertResponse($this->simpleMutationQuery, $expected, static::USER_RYAN);
189
    }
190
191
    public function testReturnTheSameClientMutationIdForAnonymousUserDontHasRightToMutateSimpleMutation()
192
    {
193
        $expected = [
194
            'data' => [
195
                'simpleMutation' => null,
196
            ],
197
            'errors' => [
198
                [
199
                    'message' => 'Access denied to this field.',
200
                    "locations" => [
201
                        [
202
                            "line" => 2,
203
                            "column" => 3,
204
                        ]
205
                    ]
206
                ],
207
            ],
208
        ];
209
210
        $this->assertResponse($this->simpleMutationQuery, $expected, static::ANONYMOUS_USER);
211
    }
212
213
    public function testUseObjectInMutationPayload()
214
    {