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 |
@@ 238-248 (lines=11) @@ | ||
235 | ]; |
|
236 | } |
|
237 | ||
238 | private static function assertResponse($query, array $expected, $username) |
|
239 | { |
|
240 | $client = self::createClientAuthenticated($username); |
|
241 | $client->request('GET', '/', ['query' => $query]); |
|
242 | ||
243 | $result = $client->getResponse()->getContent(); |
|
244 | ||
245 | static::assertEquals($expected, json_decode($result, true), $result); |
|
246 | ||
247 | return $client; |
|
248 | } |
|
249 | ||
250 | private static function createClientAuthenticated($username) |
|
251 | { |