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

18 lines
358 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?php
declare(strict_types=1);
namespace Tests\Feature\App\Http\Controllers\Bo;
2026-06-14 21:32:07 +02:00
it('Should required login to access backoffice', function (): void {
/** @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'));
});