]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
unit test 1292/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Aug 2015 18:29:03 +0000 (20:29 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Aug 2015 18:29:03 +0000 (20:29 +0200)
src/Wallabag/CoreBundle/Controller/TagController.php
src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php [new file with mode: 0644]

index 89284231579cd29563e0809f61e5be8bc517e6bd..e448cea1ebd181be873e1c2f6ca1e6e20794f7fb 100644 (file)
@@ -4,8 +4,6 @@ namespace Wallabag\CoreBundle\Controller;
 
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
-use Symfony\Component\HttpFoundation\Request;
-use Wallabag\CoreBundle\Entity\Tag;
 
 class TagController extends Controller
 {
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/TagControllerTest.php
new file mode 100644 (file)
index 0000000..34faf70
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace Wallabag\CoreBundle\Tests\Controller;
+
+use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
+use Doctrine\ORM\AbstractQuery;
+
+class TagControllerTest extends WallabagCoreTestCase
+{
+    public function testList()
+    {
+        $this->logInAs('admin');
+        $client = $this->getClient();
+
+        $client->request('GET', '/tag/list');
+
+        $this->assertEquals(200, $client->getResponse()->getStatusCode());
+    }
+}