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 | ||
| @@ 229-239 (lines=11) @@ | ||
| 226 | ]; |
|
| 227 | } |
|
| 228 | ||
| 229 | private static function assertResponse($query, array $expected, $username) |
|
| 230 | { |
|
| 231 | $client = self::createClientAuthenticated($username); |
|
| 232 | $client->request('GET', '/', ['query' => $query]); |
|
| 233 | ||
| 234 | $result = $client->getResponse()->getContent(); |
|
| 235 | ||
| 236 | static::assertEquals($expected, json_decode($result, true), $result); |
|
| 237 | ||
| 238 | return $client; |
|
| 239 | } |
|
| 240 | ||
| 241 | private static function createClientAuthenticated($username) |
|
| 242 | { |
|