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/StaticControllerTest.php') 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 From b958d9e59b7aa23adbcd55e78277dade70fc3c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 10 Aug 2015 14:13:23 +0200 Subject: remove useless line --- src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php') diff --git a/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php index c1668fa5..6d7976c4 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php @@ -3,7 +3,6 @@ namespace Wallabag\CoreBundle\Tests\Controller; use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; -use Doctrine\ORM\AbstractQuery; class StaticControllerTest extends WallabagCoreTestCase { -- cgit v1.2.3