diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-10 08:19:40 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-10 08:19:40 +0200 |
commit | 1473e8c9fb54cfa8502e582832db579a353aeadb (patch) | |
tree | 756be04da88c36be0ba2f99443685d15560581de /src | |
parent | b7dd5f824c0d533c2a902ae41b70ac740ecd2fec (diff) | |
download | wallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.tar.gz wallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.tar.zst wallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.zip |
add tests for static pages
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php new file mode 100644 index 00000000..c1668fa5 --- /dev/null +++ b/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php | |||
@@ -0,0 +1,29 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Tests\Controller; | ||
4 | |||
5 | use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; | ||
6 | use Doctrine\ORM\AbstractQuery; | ||
7 | |||
8 | class StaticControllerTest extends WallabagCoreTestCase | ||
9 | { | ||
10 | public function testAbout() | ||
11 | { | ||
12 | $this->logInAs('admin'); | ||
13 | $client = $this->getClient(); | ||
14 | |||
15 | $client->request('GET', '/about'); | ||
16 | |||
17 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
18 | } | ||
19 | |||
20 | public function testHowto() | ||
21 | { | ||
22 | $this->logInAs('admin'); | ||
23 | $client = $this->getClient(); | ||
24 | |||
25 | $client->request('GET', '/howto'); | ||
26 | |||
27 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
28 | } | ||
29 | } | ||