ldc-boutique-cnc-sable/tests/Feature/Fo/AuthTest.php

17 lines
331 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?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'));
});