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