summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-19 14:59:02 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2022-08-21 16:39:07 +0200
commit1a76e03f5a89ccd856460a8fa60fedfec2df18e9 (patch)
tree220921ffb0815c2288aba28c08fde1d2864a6348
parent4afd5a547d32ff377a497a2b311efc40a39c19a4 (diff)
fix unittest
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--tests/Unit/Db/ItemMapperTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/Unit/Db/ItemMapperTest.php b/tests/Unit/Db/ItemMapperTest.php
index 7fc45018e..93f02d4b8 100644
--- a/tests/Unit/Db/ItemMapperTest.php
+++ b/tests/Unit/Db/ItemMapperTest.php
@@ -497,14 +497,14 @@ class ItemMapperTest extends MapperTestUtility
->with('items', 'news_feeds', 'feeds', 'items.feed_id = feeds.id')
->will($this->returnSelf());
- $selectbuilder->expects($this->exactly(2))
+ $selectbuilder->expects($this->exactly(3))
->method('andWhere')
- ->withConsecutive(['feeds.user_id = :userId'], ['items.id <= :maxItemId'])
+ ->withConsecutive(['feeds.user_id = :userId'], ['items.id <= :maxItemId'], ['items.unread != :unread'])
->will($this->returnSelf());
- $selectbuilder->expects($this->exactly(2))
+ $selectbuilder->expects($this->exactly(3))
->method('setParameter')
- ->withConsecutive(['userId', 'admin'], ['maxItemId', 4])
+ ->withConsecutive(['userId', 'admin'], ['maxItemId', 4], ['unread', false])
->will($this->returnSelf());
$selectbuilder->expects($this->exactly(1))
@@ -542,14 +542,14 @@ class ItemMapperTest extends MapperTestUtility
->with('unread', 'unread')
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(1))
->method('andWhere')
- ->withConsecutive(['id IN (:idList)'], ['unread != :unread'])
+ ->withConsecutive(['id IN (:idList)'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(1))
->method('setParameter')
- ->withConsecutive(['unread', false], ['idList', [1, 2]])
+ ->withConsecutive(['idList', [1, 2]])
->will($this->returnSelf());
$this->builder->expects($this->exactly(1))