mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
25 lines
531 B
PHP
25 lines
531 B
PHP
<?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);
|
|
}
|
|
}
|