23 lines
452 B
PHP
23 lines
452 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Tests\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class HomeControllerTest extends WebTestCase
|
|
{
|
|
public function testIndex(): void
|
|
{
|
|
$client = static::createClient();
|
|
|
|
// Request a specific page
|
|
$crawler = $client->request('GET', '/');
|
|
|
|
// Validate a successful response and some content
|
|
$this->assertResponseIsSuccessful();
|
|
|
|
}
|
|
}
|