From 9a823591a41dd85f27b7fa973e8dc16b4cd55b13 Mon Sep 17 00:00:00 2001 From: Sebastian Almberg <83243306+Sebbeben@users.noreply.github.com> Date: Sat, 21 Feb 2026 00:15:36 +0100 Subject: [PATCH] Fix auth test: expect 401 instead of redirect for HTTP Basic auth --- tests/Controller/UpdateManagerControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Controller/UpdateManagerControllerTest.php b/tests/Controller/UpdateManagerControllerTest.php index b0ad3af7..e770a5bb 100644 --- a/tests/Controller/UpdateManagerControllerTest.php +++ b/tests/Controller/UpdateManagerControllerTest.php @@ -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