From 1473e8c9fb54cfa8502e582832db579a353aeadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 10 Aug 2015 08:19:40 +0200 Subject: add tests for static pages --- .../Tests/Controller/StaticControllerTest.php | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php (limited to 'src/Wallabag/CoreBundle/Tests/Controller') 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 @@ +logInAs('admin'); + $client = $this->getClient(); + + $client->request('GET', '/about'); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + } + + public function testHowto() + { + $this->logInAs('admin'); + $client = $this->getClient(); + + $client->request('GET', '/howto'); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + } +} -- cgit v1.2.3