test: update test suite

This commit is contained in:
Maël Gangloff
2025-10-16 02:31:08 +02:00
parent cd454750cf
commit afd736882e
3 changed files with 81 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class HomeControllerTest extends WebTestCase
{
public function testIndex(): void
{
$client = static::createClient();
$client->request('GET', '/');
$this->assertResponseIsSuccessful();
}
public function testConnectSsoReturnNotFound(): void
{
$client = static::createClient();
$client->request('GET', '/login/oauth');
$this->assertResponseStatusCodeSame(404);
}
}