diff options
author | Aurélien <dav.aurelien@gmail.com> | 2021-02-28 19:36:02 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | f59fe9610566bbb3960204a3fcb8898caa71fc36 (patch) | |
tree | f902eb484040fbc080bc4aef8755eda0011118fe /tests/Unit/Db/ItemMapperTest.php | |
parent | 319b15a655af6ac0186f55be0d1fffb0f8604d96 (diff) |
Fix test findAllFolderIdNull and findAllFolderHideRead
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit/Db/ItemMapperTest.php')
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 5d0e06fbe..37ad3b718 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -1584,10 +1584,11 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id']) ->will($this->returnSelf()); - $this->builder->expects($this->exactly(2)) + $this->builder->expects($this->exactly(3)) ->method('andWhere') ->withConsecutive( ['feeds.user_id = :userId'], + ['items.shared_by = \'\''], ['x IS NULL'] ) ->will($this->returnSelf()); @@ -1667,10 +1668,11 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['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( ['feeds.user_id = :userId'], + [('items.shared_by = \'\'')], ['x IS NULL'], ['items.unread = 1'] ) |