summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-02-28 21:15:26 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit2c59331316eabe318e7a44c9451fe43cf4152a70 (patch)
treedca8a5b03ebffc604bc8eacf259c2b23f96f6881 /tests
parent306f97d656f39f805379f7e034a4eefa4b91f99e (diff)
Fix testNewest
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/ItemMapperTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index b0a0cf355..3a47e927e 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -444,12 +444,15 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(1))
->method('where')
- ->withConsecutive(['feeds.user_id = :userId'])
+ ->withConsecutive(['(feeds.user_id = :userId AND items.shared_by = \'\') OR items.shared_with = :sharedWith'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(1))
+ $this->builder->expects($this->exactly(2))
->method('setParameter')
- ->withConsecutive(['userId', 'jack'])
+ ->withConsecutive(
+ ['userId', 'jack'],
+ ['sharedWith', 'jack']
+ )
->will($this->returnSelf());
$this->builder->expects($this->exactly(1))