mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Fix auth test: expect 401 instead of redirect for HTTP Basic auth
This commit is contained in:
parent
597f0e6280
commit
9a823591a4
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ final class UpdateManagerControllerTest extends WebTestCase
|
||||||
|
|
||||||
$client->request('GET', '/en/system/update-manager');
|
$client->request('GET', '/en/system/update-manager');
|
||||||
|
|
||||||
// Should redirect to login
|
// Should deny access (401 with HTTP Basic auth in test env)
|
||||||
$this->assertResponseRedirects();
|
$this->assertResponseStatusCodeSame(401);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIndexPageAccessibleByAdmin(): void
|
public function testIndexPageAccessibleByAdmin(): void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue