domain-watchdog/tests/Controller/HomeControllerTest.php

25 lines
531 B
PHP
Raw Normal View History

2025-10-16 02:31:08 +02:00
<?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);
}
}