We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 139-155 (lines=17) @@ | ||
136 | $this->assertResponse($query, $expected, static::USER_ADMIN, 'access'); |
|
137 | } |
|
138 | ||
139 | public function testUserAccessToUserFriends() |
|
140 | { |
|
141 | $expected = [ |
|
142 | 'data' => [ |
|
143 | 'user' => [ |
|
144 | 'friends' => [ |
|
145 | 'edges' => [ |
|
146 | ['node' => ['name' => 'Nick']], |
|
147 | ['node' => null], |
|
148 | ], |
|
149 | ], |
|
150 | ], |
|
151 | ], |
|
152 | ]; |
|
153 | ||
154 | $this->assertResponse($this->userFriendsQuery, $expected, static::USER_ADMIN, 'access'); |
|
155 | } |
|
156 | ||
157 | public function testMutationAllowedUser() |
|
158 | { |
@@ 59-74 (lines=16) @@ | ||
56 | $this->assertResponse($this->userFriendsWithoutLimitQuery, $expected, self::ANONYMOUS_USER, 'queryComplexity'); |
|
57 | } |
|
58 | ||
59 | public function testComplexityUnderLimitation() |
|
60 | { |
|
61 | $expected = [ |
|
62 | 'data' => [ |
|
63 | 'user' => [ |
|
64 | 'friends' => [ |
|
65 | 'edges' => [ |
|
66 | ['node' => ['name' => 'Nick']], |
|
67 | ], |
|
68 | ], |
|
69 | ], |
|
70 | ], |
|
71 | ]; |
|
72 | ||
73 | $this->assertResponse($this->userFriendsWithLimitQuery, $expected, self::ANONYMOUS_USER, 'queryComplexity'); |
|
74 | } |
|
75 | } |
|
76 |