wallabag/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php

19 lines
468 B
PHP
Raw Normal View History

2015-01-22 07:30:07 +00:00
<?php
namespace Wallabag\CoreBundle\Tests\Controller;
2015-01-22 07:30:07 +00:00
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
2015-01-22 16:18:56 +00:00
class EntryControllerTest extends WebTestCase
2015-01-22 07:30:07 +00:00
{
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);
}
}