From 0aeaf0e8c2c3840e7ce4f794aab2fcd6ceb1a78d 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: [PATCH] Added tests --- .../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 cb6682bef..3edef6e6c 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -411,6 +411,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'); @@ -1590,6 +1600,10 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertSame(302, $client->getResponse()->getStatusCode()); $this->assertStringContainsString('/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->assertStringContainsString('/view/', $client->getResponse()->getTargetUrl(), 'All random');