ldc-boutique-cnc-sable/tests/Feature/Bo/AuthTest.php

15 lines
308 B
PHP

<?php
declare(strict_types=1);
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'));
});