diff options
Diffstat (limited to 'tests/Unit/Db/ItemMapperTest.php')
-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)) |