summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-02-28 21:22:55 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit5a12e50ccaef6981012d342b510a19ede81e0bfa (patch)
tree25df57df9653f99612cd015c416ef4f0ab5af3f9 /tests
parent890b8fa1df48a0ee55e5b8fe06f81e387afb7ee8 (diff)
Fix testFindForUserByGUIDHash
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Db/ItemMapperTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index 3a47e927e..e42df1bf7 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -388,12 +388,12 @@ class ItemMapperTest extends MapperTestUtility
$this->builder->expects($this->exactly(3))
->method('andWhere')
- ->withConsecutive(['feeds.user_id = :user_id'], ['feeds.id = :feed_id'], ['items.guid_hash = :guid_hash'])
+ ->withConsecutive(['(feeds.user_id = :user_id AND items.shared_by = \'\') OR items.shared_with = :shared_with'], ['feeds.id = :feed_id'], ['items.guid_hash = :guid_hash'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(3))
+ $this->builder->expects($this->exactly(4))
->method('setParameter')
- ->withConsecutive(['user_id', 'jack'], ['feed_id', 4], ['guid_hash', 'hash'])
+ ->withConsecutive(['user_id', 'jack'], ['shared_with', 'jack'], ['feed_id', 4], ['guid_hash', 'hash'])
->will($this->returnSelf());
$this->builder->expects($this->once())