|
26 | 26 | final class NegotiateControllerTest extends TestCase |
27 | 27 | { |
28 | 28 | protected Configuration $config; |
| 29 | + |
29 | 30 | protected Logger $logger; |
| 31 | + |
30 | 32 | protected Module $module; |
| 33 | + |
31 | 34 | protected Session $session; |
32 | 35 |
|
33 | 36 |
|
@@ -177,13 +180,12 @@ final public function __construct() |
177 | 180 |
|
178 | 181 |
|
179 | 182 | /** @param array<mixed> $state */ |
180 | | - public function authenticate(array &$state): void |
181 | 183 | { |
182 | 184 | // stub |
183 | 185 | } |
184 | 186 |
|
185 | 187 |
|
186 | | - public static function getById(string $authId, ?string $type = null): ?Source |
| 188 | + public static function getById(string $authId, ?string $type = null): Source |
187 | 189 | { |
188 | 190 | return new static(); |
189 | 191 | } |
@@ -279,7 +281,8 @@ public function authenticate(array &$state): void |
279 | 281 | // stub |
280 | 282 | } |
281 | 283 |
|
282 | | - public static function getById(string $authId, ?string $type = null): ?Source |
| 284 | + |
| 285 | + public static function getById(string $authId, ?string $type = null): null |
283 | 286 | { |
284 | 287 | return null; |
285 | 288 | } |
@@ -316,8 +319,8 @@ public function testRetryMissingState(): void |
316 | 319 |
|
317 | 320 | /** |
318 | 321 | * Test that a valid requests results in a RunnableResponse |
319 | | - * @throws Error\BadRequest |
320 | | - * @throws Error\NoState |
| 322 | + * @throws \SimpleSAML\Error\BadRequest |
| 323 | + * @throws \SimpleSAML\Error\NoState |
321 | 324 | */ |
322 | 325 | public function testBackend(): void |
323 | 326 | { |
@@ -349,8 +352,8 @@ public static function loadState(string $id, string $stage, bool $allowMissing = |
349 | 352 |
|
350 | 353 | /** |
351 | 354 | * Test that a missing AuthState results in a BadRequest-error |
352 | | - * @throws Error\BadRequest |
353 | | - * @throws Error\NoState |
| 355 | + * @throws \SimpleSAML\Error\BadRequest |
| 356 | + * @throws \SimpleSAML\Error\NoState |
354 | 357 | */ |
355 | 358 | public function testBackendMissingState(): void |
356 | 359 | { |
|
0 commit comments