Implement controller functional test
This commit is contained in:
17
tests/Controller/ConferenceControllerTest.php
Normal file
17
tests/Controller/ConferenceControllerTest.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user