We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 145-155 (lines=11) @@ | ||
142 | ]; |
|
143 | } |
|
144 | ||
145 | private static function assertResponse($query, array $expected, $username) |
|
146 | { |
|
147 | $client = self::createClientAuthenticated($username); |
|
148 | $client->request('GET', '/', ['query' => $query]); |
|
149 | ||
150 | $result = $client->getResponse()->getContent(); |
|
151 | ||
152 | static::assertEquals($expected, json_decode($result, true), $result); |
|
153 | ||
154 | return $client; |
|
155 | } |
|
156 | ||
157 | private static function createClientAuthenticated($username) |
|
158 | { |
@@ 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 |