Implement controller functional test

This commit is contained in:
2024-07-28 18:02:14 -04:00
parent 8dc93df394
commit d5cbd4d56e

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ConferenceControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$client->request('GET', '/');
$this->assertResponseIsSuccessful();
$this->assertSelectorTextContains('h2', 'Give your feedback');
}
}