summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-02-28 21:08:55 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit306f97d656f39f805379f7e034a4eefa4b91f99e (patch)
tree949ecff411a77dbff6ae3159e2eb5b51cd5982f4 /tests
parent6775fe541ec71fde0c8af819607e1b40b72eb2bd (diff)
Fix tests testFindAllInFolderAfterHideRead, testFindAllInFolderAfter, testFindAllInFeedAfterHideRead, testFindAllInFeedAfter
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/ItemMapperTest.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index 067043330..b0a0cf355 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -493,10 +493,11 @@ class ItemMapperTest extends MapperTestUtility
->with('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(
['items.last_modified >= :updatedSince'],
+ ['items.shared_by = \'\''],
['feeds.user_id = :userId'],
['feeds.id = :feedId']
)
@@ -557,10 +558,11 @@ class ItemMapperTest extends MapperTestUtility
->with('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(
['items.last_modified >= :updatedSince'],
+ ['items.shared_by = \'\''],
['feeds.user_id = :userId'],
['feeds.id = :feedId'],
['items.unread = 1']
@@ -625,10 +627,11 @@ class ItemMapperTest extends MapperTestUtility
)
->will($this->returnSelf());
- $this->builder->expects($this->exactly(3))
+ $this->builder->expects($this->exactly(4))
->method('andWhere')
->withConsecutive(
['items.last_modified >= :updatedSince'],
+ ['items.shared_by = \'\''],
['feeds.user_id = :userId'],
['folders.id = :folderId']
)
@@ -692,10 +695,11 @@ class ItemMapperTest extends MapperTestUtility
)
->will($this->returnSelf());
- $this->builder->expects($this->exactly(4))
+ $this->builder->expects($this->exactly(5))
->method('andWhere')
->withConsecutive(
['items.last_modified >= :updatedSince'],
+ ['items.shared_by = \'\''],
['feeds.user_id = :userId'],
['folders.id = :folderId'],
['items.unread = 1']