16 lines
331 B
PHP
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'));
|
|
});
|