]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added tests
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 20 Apr 2020 17:21:35 +0000 (19:21 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 20 Apr 2020 17:21:35 +0000 (19:21 +0200)
tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php

index 8960dd2571cfb809abcd9da8cd1f98fd54120a93..65c65ff15480c65250abf0292c9a9080d2928772 100644 (file)
@@ -399,6 +399,16 @@ class EntryControllerTest extends WallabagCoreTestCase
         $this->assertSame(200, $client->getResponse()->getStatusCode());
     }
 
+    public function testWithAnnotations()
+    {
+        $this->logInAs('admin');
+        $client = $this->getClient();
+
+        $client->request('GET', '/with_annotations/list');
+
+        $this->assertSame(200, $client->getResponse()->getStatusCode());
+    }
+
     public function testRangeException()
     {
         $this->logInAs('admin');
@@ -1553,6 +1563,10 @@ class EntryControllerTest extends WallabagCoreTestCase
         $this->assertSame(302, $client->getResponse()->getStatusCode());
         $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random');
 
+        $client->request('GET', '/with_annotations/random');
+        $this->assertSame(302, $client->getResponse()->getStatusCode());
+        $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random');
+
         $client->request('GET', '/all/random');
         $this->assertSame(302, $client->getResponse()->getStatusCode());
         $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'All random');