We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 52-71 (lines=20) @@ | ||
| 49 | } |
|
| 50 | EOF; |
|
| 51 | ||
| 52 | public function testNotAuthenticatedUserAccessToUserName() |
|
| 53 | { |
|
| 54 | $expected = [ |
|
| 55 | 'data' => [ |
|
| 56 | 'user' => [ |
|
| 57 | 'name' => null, |
|
| 58 | ], |
|
| 59 | ], |
|
| 60 | 'extensions' => [ |
|
| 61 | 'warnings' => [ |
|
| 62 | [ |
|
| 63 | 'message' => 'Access denied to this field.', |
|
| 64 | 'locations' => [['line' => 1, 'column' => 24]], |
|
| 65 | ], |
|
| 66 | ], |
|
| 67 | ], |
|
| 68 | ]; |
|
| 69 | ||
| 70 | $this->assertResponse($this->userNameQuery, $expected, static::ANONYMOUS_USER); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testFullyAuthenticatedUserAccessToUserName() |
|
| 74 | { |
|
| @@ 127-146 (lines=20) @@ | ||
| 124 | $this->assertResponse($this->userFriendsQuery, $expected, static::USER_ADMIN); |
|
| 125 | } |
|
| 126 | ||
| 127 | public function testUserAccessToUserIsEnabledWithExpressionLanguageEvaluationFailed() |
|
| 128 | { |
|
| 129 | $expected = [ |
|
| 130 | 'data' => [ |
|
| 131 | 'user' => [ |
|
| 132 | 'isEnabled' => null, |
|
| 133 | ], |
|
| 134 | ], |
|
| 135 | 'extensions' => [ |
|
| 136 | 'warnings' => [ |
|
| 137 | [ |
|
| 138 | 'message' => 'Access denied to this field.', |
|
| 139 | 'locations' => [['line' => 1, 'column' => 24]], |
|
| 140 | ], |
|
| 141 | ], |
|
| 142 | ], |
|
| 143 | ]; |
|
| 144 | ||
| 145 | $this->assertResponse($this->userIsEnabledQuery, $expected, static::USER_ADMIN); |
|
| 146 | } |
|
| 147 | ||
| 148 | public function testMutationAllowedUser() |
|
| 149 | { |
|