mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-28 20:39:35 +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');
|
||||
|
||||
// Should redirect to login
|
||||
$this->assertResponseRedirects();
|
||||
// Should deny access (401 with HTTP Basic auth in test env)
|
||||
$this->assertResponseStatusCodeSame(401);
|
||||
}
|
||||
|
||||
public function testIndexPageAccessibleByAdmin(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue