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 d411f15feb
commit b15074ea44

View file

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