From 9cc8dc83f373bf6f280b3168292a934c3d6f3e27 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 19 Dec 2025 14:05:42 +0100 Subject: [PATCH] Test on index controller --- tests/Controller/IndexControllerTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Controller/IndexControllerTest.php b/tests/Controller/IndexControllerTest.php index a2b7364..94e1994 100644 --- a/tests/Controller/IndexControllerTest.php +++ b/tests/Controller/IndexControllerTest.php @@ -88,5 +88,12 @@ class IndexControllerTest extends AbstractFunctionalTest $this->client->followRedirect(); self::assertResponseIsSuccessful(); } + + #[Test] + public function test_index_unauthenticated(): void + { + $this->client->request('GET', '/'); + self::assertResponseRedirects('/login'); + } //endregion } \ No newline at end of file