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

19 lines
468 B
PHP
Raw Normal View History

2015-01-22 08:30:07 +01:00
<?php
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);
}
}