ldc-cocotte/tests/Feature/App/Http/Controllers/Fo/AuthTest.php

18 lines
381 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Feature\App\Http\Controllers\Fo;
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'));
});