Fix auth test: expect 401 instead of redirect for HTTP Basic auth

This commit is contained in:
Sebastian Almberg 2026-02-21 00:15:36 +01:00
parent 597f0e6280
commit 9a823591a4

View file

@ -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