summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-02-28 19:43:15 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commitd314e8b4954cfe91cf116191269619e1f1ce39fd (patch)
tree39ea85f1ded845023906617a1d4a976682bbbcda /tests
parentf59fe9610566bbb3960204a3fcb8898caa71fc36 (diff)
Fix test findAllFeedSearch and findAllFeedHideRead
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/ItemMapperTest.php6
1 files 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']
)