2026-06-14 21:32:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
it('Should required login to access backoffice', function (): void {
|
2026-10-03 10:07:30 +02:00
|
|
|
/** @var \Tests\TestCase $this */
|
2026-06-14 21:32:07 +02:00
|
|
|
// GIVEN
|
|
|
|
|
$route = route('bo.dashboard');
|
|
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$reponse = $this->get($route);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
$reponse->assertRedirect(route('bo.auth.login'));
|
|
|
|
|
});
|