diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-08-31 15:25:50 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-08-31 16:14:18 +0200 |
commit | a7f69c4b63e9495bd0f15c66c3ea163f38012d7d (patch) | |
tree | 622938e78cd461c31060c935b757529f47118f19 /tests | |
parent | a41abf808f02e337a59ad7acdeed02a9465c6590 (diff) |
fix readAll
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/ItemMapperTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php index 93f02d4b8..3a4a026d6 100644 --- a/tests/Unit/Db/ItemMapperTest.php +++ b/tests/Unit/Db/ItemMapperTest.php @@ -499,12 +499,12 @@ class ItemMapperTest extends MapperTestUtility $selectbuilder->expects($this->exactly(3)) ->method('andWhere') - ->withConsecutive(['feeds.user_id = :userId'], ['items.id <= :maxItemId'], ['items.unread != :unread']) + ->withConsecutive(['feeds.user_id = :userId'], ['items.id <= :maxItemId'], ['items.unread = :unread']) ->will($this->returnSelf()); $selectbuilder->expects($this->exactly(3)) ->method('setParameter') - ->withConsecutive(['userId', 'admin'], ['maxItemId', 4], ['unread', false]) + ->withConsecutive(['userId', 'admin'], ['maxItemId', 4], ['unread', true]) ->will($this->returnSelf()); $selectbuilder->expects($this->exactly(1)) @@ -547,9 +547,9 @@ class ItemMapperTest extends MapperTestUtility ->withConsecutive(['id IN (:idList)']) ->will($this->returnSelf()); - $this->builder->expects($this->exactly(1)) + $this->builder->expects($this->exactly(2)) ->method('setParameter') - ->withConsecutive(['idList', [1, 2]]) + ->withConsecutive(['idList', [1, 2]], ['unread', false]) ->will($this->returnSelf()); $this->builder->expects($this->exactly(1)) |