From 37019b5ad57de0d538a92540f690860b119cace6 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 13 May 2022 14:15:19 +0200 Subject: [PATCH] Fix tests --- .../CoreBundle/Controller/EntryControllerTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index 01253ab69..16b8609d2 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php @@ -456,7 +456,7 @@ class EntryControllerTest extends WallabagCoreTestCase $crawler = $client->request('GET', '/annotated/list'); $this->assertSame(200, $client->getResponse()->getStatusCode()); - $this->assertCount(2, $crawler->filter('li.entry')); + $this->assertCount(2, $crawler->filter('ol.entries > li')); } public function testRangeException() @@ -941,7 +941,7 @@ class EntryControllerTest extends WallabagCoreTestCase $crawler = $client->submit($form, $data); - $this->assertCount(2, $crawler->filter('li.entry')); + $this->assertCount(2, $crawler->filter('ol.entries > li')); $entry = new Entry($this->getLoggedInUser()); $entry->setUrl($this->url); @@ -961,7 +961,7 @@ class EntryControllerTest extends WallabagCoreTestCase $crawler = $client->submit($form, $data); - $this->assertCount(3, $crawler->filter('li.entry')); + $this->assertCount(3, $crawler->filter('ol.entries > li')); } public function testPaginationWithFilter() @@ -1768,6 +1768,7 @@ class EntryControllerTest extends WallabagCoreTestCase $client = $this->getClient(); $crawler = $client->request('GET', '/domain/1'); - $this->assertCount(4, $crawler->filter('li.entry')); + $this->assertSame(200, $client->getResponse()->getStatusCode()); + $this->assertCount(4, $crawler->filter('ol.entries > li')); } }