summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Unit/Db/ItemMapperAfterTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Unit/Db/ItemMapperAfterTest.php b/tests/Unit/Db/ItemMapperAfterTest.php
index 8a31fedf6..5c91fa00d 100644
--- a/tests/Unit/Db/ItemMapperAfterTest.php
+++ b/tests/Unit/Db/ItemMapperAfterTest.php
@@ -534,7 +534,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->withConsecutive(
['items.last_modified >= :updatedSince'],
['feeds.deleted_at = 0'],
- ['feeds.user_id = :userId'],
+ ['(feeds.user_id = :userId AND items.shared_by = \'\') OR items.shared_with = :sharedWith'],
['items.starred = :starred']
)
->will($this->returnSelf());
@@ -544,6 +544,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->with([
'updatedSince' => 1610903351,
'userId' => 'jack',
+ 'sharedWith' => 'jack'
])
->will($this->returnSelf());
@@ -603,7 +604,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->withConsecutive(
['items.last_modified >= :updatedSince'],
['feeds.deleted_at = 0'],
- ['feeds.user_id = :userId']
+ ['(feeds.user_id = :userId AND items.shared_by = \'\') OR items.shared_with = :sharedWith']
)
->will($this->returnSelf());
@@ -612,6 +613,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->with([
'updatedSince' => 1610903351,
'userId' => 'jack',
+ 'sharedWith' => 'jack'
])
->will($this->returnSelf());
@@ -669,7 +671,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->withConsecutive(
['items.last_modified >= :updatedSince'],
['feeds.deleted_at = 0'],
- ['feeds.user_id = :userId']
+ ['(feeds.user_id = :userId AND items.shared_by = \'\') OR items.shared_with = :sharedWith']
)
->will($this->returnSelf());
@@ -678,6 +680,7 @@ class ItemMapperAfterTest extends MapperTestUtility
->with([
'updatedSince' => 1610903351,
'userId' => 'jack',
+ 'sharedWith' => 'jack'
])
->will($this->returnSelf());