We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 77-87 (lines=11) @@ | ||
| 74 | $this->assertResponse($this->userFriendsWithLimitQuery, $expected); |
|
| 75 | } |
|
| 76 | ||
| 77 | private static function assertResponse($query, array $expected) |
|
| 78 | { |
|
| 79 | $client = static::createClient(['test_case' => 'queryComplexity']); |
|
| 80 | $client->request('GET', '/', ['query' => $query]); |
|
| 81 | ||
| 82 | $result = $client->getResponse()->getContent(); |
|
| 83 | ||
| 84 | static::assertEquals($expected, json_decode($result, true), $result); |
|
| 85 | ||
| 86 | return $client; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | ||
| @@ 259-269 (lines=11) @@ | ||
| 256 | ]; |
|
| 257 | } |
|
| 258 | ||
| 259 | private static function assertResponse($query, array $expected, $username) |
|
| 260 | { |
|
| 261 | $client = self::createClientAuthenticated($username); |
|
| 262 | $client->request('GET', '/', ['query' => $query]); |
|
| 263 | ||
| 264 | $result = $client->getResponse()->getContent(); |
|
| 265 | ||
| 266 | static::assertEquals($expected, json_decode($result, true), $result); |
|
| 267 | ||
| 268 | return $client; |
|
| 269 | } |
|
| 270 | ||
| 271 | private static function createClientAuthenticated($username) |
|
| 272 | { |
|