Test on index controller

This commit is contained in:
Charles 2025-12-19 14:05:42 +01:00
parent 86ef5fa6f6
commit 9cc8dc83f3
1 changed files with 7 additions and 0 deletions

View File

@ -88,5 +88,12 @@ class IndexControllerTest extends AbstractFunctionalTest
$this->client->followRedirect(); $this->client->followRedirect();
self::assertResponseIsSuccessful(); self::assertResponseIsSuccessful();
} }
#[Test]
public function test_index_unauthenticated(): void
{
$this->client->request('GET', '/');
self::assertResponseRedirects('/login');
}
//endregion //endregion
} }