We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 42-59 (lines=18) @@ | ||
39 | } |
|
40 | EOF; |
|
41 | ||
42 | public function testNotAuthenticatedUserAccessToUserName() |
|
43 | { |
|
44 | $expected = [ |
|
45 | 'data' => [ |
|
46 | 'user' => [ |
|
47 | 'name' => null, |
|
48 | ], |
|
49 | ], |
|
50 | 'errors' => [ |
|
51 | [ |
|
52 | 'message' => 'Access denied to this field.', |
|
53 | 'locations' => [['line' => 1, 'column' => 24]], |
|
54 | ], |
|
55 | ], |
|
56 | ]; |
|
57 | ||
58 | $this->assertResponse($this->userNameQuery, $expected, static::ANONYMOUS_USER); |
|
59 | } |
|
60 | ||
61 | public function testFullyAuthenticatedUserAccessToUserName() |
|
62 | { |
|
@@ 115-132 (lines=18) @@ | ||
112 | $this->assertResponse($this->userFriendsQuery, $expected, static::USER_ADMIN); |
|
113 | } |
|
114 | ||
115 | public function testUserAccessToUserIsEnabledWithExpressionLanguageEvaluationFailed() |
|
116 | { |
|
117 | $expected = [ |
|
118 | 'data' => [ |
|
119 | 'user' => [ |
|
120 | 'isEnabled' => null, |
|
121 | ], |
|
122 | ], |
|
123 | 'errors' => [ |
|
124 | [ |
|
125 | 'message' => 'Access denied to this field.', |
|
126 | 'locations' => [['line' => 1, 'column' => 24]], |
|
127 | ], |
|
128 | ], |
|
129 | ]; |
|
130 | ||
131 | $this->assertResponse($this->userIsEnabledQuery, $expected, static::USER_ADMIN); |
|
132 | } |
|
133 | ||
134 | private function expectedFailedUserRoles() |
|
135 | { |