]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Tests/Controller/StaticControllerTest.php
add tests for static pages
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Tests / Controller / StaticControllerTest.php
CommitLineData
1473e8c9
NL
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}