diff options
author | WENDLING NICOLAS <nicolas.wendling2@etu.unistra.fr> | 2021-02-28 23:00:29 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | abba7386eebb7f75c91d61e947bc6955577de54b (patch) | |
tree | 1d5ca48ae5d40db8b3ab6c318a533350729ba972 /tests | |
parent | 6dbf64fa9de279cc9a71f64d41d5f4bb427371d0 (diff) |
✅ Fix tests in ItemMapperAfterTest:
- testFindAllAfterStarred
- testFindAllAfterAll
- testFindAllAfterInvalid
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/ItemMapperAfterTest.php | 9 |
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()); |