aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-10 08:19:40 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-10 08:19:40 +0200
commit1473e8c9fb54cfa8502e582832db579a353aeadb (patch)
tree756be04da88c36be0ba2f99443685d15560581de /src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php
parentb7dd5f824c0d533c2a902ae41b70ac740ecd2fec (diff)
downloadwallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.tar.gz
wallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.tar.zst
wallabag-1473e8c9fb54cfa8502e582832db579a353aeadb.zip
add tests for static pages
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php29
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
3namespace Wallabag\CoreBundle\Tests\Controller;
4
5use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
6use Doctrine\ORM\AbstractQuery;
7
8class 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}