From f59fe9610566bbb3960204a3fcb8898caa71fc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Sun, 28 Feb 2021 19:36:02 +0100 Subject: Fix test findAllFolderIdNull and findAllFolderHideRead Signed-off-by: Marco Nassabain --- tests/Unit/Db/ItemMapperTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/Unit') diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 5d0e06fbe..37ad3b718 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -1584,10 +1584,11 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id']) ->will($this->returnSelf()); - $this->builder->expects($this->exactly(2)) + $this->builder->expects($this->exactly(3)) ->method('andWhere') ->withConsecutive( ['feeds.user_id = :userId'], + ['items.shared_by = \'\''], ['x IS NULL'] ) ->will($this->returnSelf()); @@ -1667,10 +1668,11 @@ 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.shared_by = \'\'')], ['x IS NULL'], ['items.unread = 1'] ) -- cgit v1.2.3