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