blob: f35af7522fe44af444a4ce66d3c3330642231a7e (
plain) (
tree)
|
|
<?php
namespace AppBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/app/example');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0);
}
}
|