17 lines
358 B
PHP
17 lines
358 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Feature\App\Http\Controllers\Bo;
|
|
|
|
it('Should required login to access backoffice', function (): void {
|
|
/** @var \Tests\TestCase $this */
|
|
// GIVEN
|
|
$route = route('bo.dashboard');
|
|
|
|
// WHEN
|
|
$reponse = $this->get($route);
|
|
|
|
// THEN
|
|
$reponse->assertRedirect(route('bo.auth.login'));
|
|
});
|