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