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 | ||
| @@ 221-231 (lines=11) @@ | ||
| 218 | ]; |
|
| 219 | } |
|
| 220 | ||
| 221 | private static function assertResponse($query, array $expected, $username) |
|
| 222 | { |
|
| 223 | $client = self::createClientAuthenticated($username); |
|
| 224 | $client->request('GET', '/', ['query' => $query]); |
|
| 225 | ||
| 226 | $result = $client->getResponse()->getContent(); |
|
| 227 | ||
| 228 | static::assertEquals($expected, json_decode($result, true), $result); |
|
| 229 | ||
| 230 | return $client; |
|
| 231 | } |
|
| 232 | ||
| 233 | private static function createClientAuthenticated($username) |
|
| 234 | { |
|