From d314e8b4954cfe91cf116191269619e1f1ce39fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Sun, 28 Feb 2021 19:43:15 +0100 Subject: Fix test findAllFeedSearch and findAllFeedHideRead Signed-off-by: Marco Nassabain --- tests/Unit/Db/ItemMapperTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 37ad3b718..478745329 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -1424,11 +1424,12 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id']) ->will($this->returnSelf()); - $this->builder->expects($this->exactly(3)) + $this->builder->expects($this->exactly(4)) ->method('andWhere') ->withConsecutive( ['feeds.user_id = :userId'], ['items.feed_id = :feedId'], + ['items.shared_by = \'\''], ['items.unread = 1'] ) ->will($this->returnSelf()); @@ -1499,11 +1500,12 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id']) ->will($this->returnSelf()); - $this->builder->expects($this->exactly(4)) + $this->builder->expects($this->exactly(5)) ->method('andWhere') ->withConsecutive( ['feeds.user_id = :userId'], ['items.feed_id = :feedId'], + ['items.shared_by = \'\''], ['items.search_index LIKE :term0'], ['items.search_index LIKE :term1'] ) -- cgit v1.2.3