From efea7a352f947a3632095d95a7dfbb07b8fd86c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 20 Apr 2020 19:21:35 +0200 Subject: Added tests --- .../Wallabag/CoreBundle/Controller/EntryControllerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 8960dd25..65c65ff1 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -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'); -- cgit v1.2.3