ldc-boutique-cnc-sable/tests/Feature/Fo/AuthTest.php
2026-10-27 09:58:12 +01:00

16 lines
331 B
PHP

<?php
declare(strict_types=1);
it('Should required login to access customer dashboard', function (): void {
/** @var \Tests\TestCase $this */
// GIVEN
$route = route('fo.account.dashboard');
// WHEN
$response = $this->get($route);
// THEN
$response->assertRedirect(route('fo.auth.connexion'));
});