aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-07 20:29:03 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-08-07 20:29:03 +0200
commitd0b90fbe18da72dc09a0ef748fa178314f6657b6 (patch)
treea9da927dc9db6653aaa87c9dbfe590300387c5b9 /src/Wallabag
parent47e12c36776b21184267521ecbfd90f714ca9b2c (diff)
downloadwallabag-d0b90fbe18da72dc09a0ef748fa178314f6657b6.tar.gz
wallabag-d0b90fbe18da72dc09a0ef748fa178314f6657b6.tar.zst
wallabag-d0b90fbe18da72dc09a0ef748fa178314f6657b6.zip
unit test
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php2
-rw-r--r--src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php19
2 files changed, 19 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php
index 89284231..e448cea1 100644
--- a/src/Wallabag/CoreBundle/Controller/TagController.php
+++ b/src/Wallabag/CoreBundle/Controller/TagController.php
@@ -4,8 +4,6 @@ namespace Wallabag\CoreBundle\Controller;
4 4
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; 5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Bundle\FrameworkBundle\Controller\Controller; 6use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7use Symfony\Component\HttpFoundation\Request;
8use Wallabag\CoreBundle\Entity\Tag;
9 7
10class TagController extends Controller 8class TagController extends Controller
11{ 9{
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
new file mode 100644
index 00000000..34faf709
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
@@ -0,0 +1,19 @@
1<?php
2
3namespace Wallabag\CoreBundle\Tests\Controller;
4
5use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
6use Doctrine\ORM\AbstractQuery;
7
8class TagControllerTest extends WallabagCoreTestCase
9{
10 public function testList()
11 {
12 $this->logInAs('admin');
13 $client = $this->getClient();
14
15 $client->request('GET', '/tag/list');
16
17 $this->assertEquals(200, $client->getResponse()->getStatusCode());
18 }
19}