From fd30989a186db2a68afa1bd24b3cf39b8ce94ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 26 Apr 2020 14:09:16 +0200 Subject: Enhanced tests and changed route --- tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Wallabag') diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 65c65ff1..07e075d4 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -404,9 +404,9 @@ class EntryControllerTest extends WallabagCoreTestCase $this->logInAs('admin'); $client = $this->getClient(); - $client->request('GET', '/with_annotations/list'); - + $crawler = $client->request('GET', '/annotated/list'); $this->assertSame(200, $client->getResponse()->getStatusCode()); + $this->assertCount(2, $crawler->filter('li.entry')); } public function testRangeException() @@ -1563,7 +1563,7 @@ class EntryControllerTest extends WallabagCoreTestCase $this->assertSame(302, $client->getResponse()->getStatusCode()); $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'Untagged random'); - $client->request('GET', '/with_annotations/random'); + $client->request('GET', '/annotated/random'); $this->assertSame(302, $client->getResponse()->getStatusCode()); $this->assertContains('/view/', $client->getResponse()->getTargetUrl(), 'With annotations random'); -- cgit v1.2.3