diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-27 13:17:37 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-27 13:17:37 +0100 |
commit | 0c678cf24a7866bf08195e76bd0d7798fb9226bf (patch) | |
tree | fa8941953637d5cecacb7cb9a36c3e3f0854538f /src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |
parent | b9ec99e25b5972bb3d0702919519382ebc37dacc (diff) | |
download | wallabag-0c678cf24a7866bf08195e76bd0d7798fb9226bf.tar.gz wallabag-0c678cf24a7866bf08195e76bd0d7798fb9226bf.tar.zst wallabag-0c678cf24a7866bf08195e76bd0d7798fb9226bf.zip |
rename test file
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php new file mode 100644 index 00000000..af20f31f --- /dev/null +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php | |||
@@ -0,0 +1,18 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Tests\Controller; | ||
4 | |||
5 | use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | ||
6 | |||
7 | class EntryControllerTest extends WebTestCase | ||
8 | { | ||
9 | public function testIndex() | ||
10 | { | ||
11 | $client = static::createClient(); | ||
12 | |||
13 | $crawler = $client->request('GET', '/app/index'); | ||
14 | |||
15 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
16 | $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0); | ||
17 | } | ||
18 | } | ||