2026-06-14 21:32:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-16 14:26:35 +01:00
|
|
|
namespace Tests\Feature\App\Http\Controllers\Fo;
|
|
|
|
|
|
2026-06-14 21:32:07 +02:00
|
|
|
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'));
|
|
|
|
|
});
|