blob: e902243893db8ddf97b9edaa1d06b981105a8e2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
namespace WallabagBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/app/index');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0);
}
}
|