19 lines
357 B
PHP
19 lines
357 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
public function test_la_racine_redirige_vers_le_portail_agent(): void
|
|
{
|
|
$this->get('/')->assertRedirect('/me');
|
|
}
|
|
|
|
public function test_le_portail_exige_une_connexion(): void
|
|
{
|
|
$this->get('/me')->assertRedirect('/login');
|
|
}
|
|
}
|