summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-03-31 19:33:09 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2022-04-30 12:24:01 +0200
commit814a591e4cb6162294387af362930a36fdb1ae54 (patch)
tree245a454b1059d90d19880086010429706f3a6a0c
parent98c3aece10f7e687592b8b683c7b98736304d2fb (diff)
test passingfix/lastmodified
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--tests/Unit/Db/FeedMapperTest.php11
-rw-r--r--tests/Unit/Db/FolderMapperTest.php8
2 files changed, 10 insertions, 9 deletions
diff --git a/tests/Unit/Db/FeedMapperTest.php b/tests/Unit/Db/FeedMapperTest.php
index 51c2adcec..7830d266c 100644
--- a/tests/Unit/Db/FeedMapperTest.php
+++ b/tests/Unit/Db/FeedMapperTest.php
@@ -49,6 +49,7 @@ class FeedMapperTest extends MapperTestUtility
$feed2->resetUpdatedFields();
$this->feeds = [$feed1, $feed2];
+
}
/**
@@ -533,11 +534,11 @@ class FeedMapperTest extends MapperTestUtility
->withConsecutive(['id IN (:idList)'], ['unread != :unread'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(3))
->method('setParameter')
- ->withConsecutive(['unread', false], ['idList', [1, 2]])
+ ->withConsecutive(['unread', false], ['idList', [1, 2]], ['last_modified'])
->will($this->returnSelf());
-
+
$this->builder->expects($this->exactly(1))
->method('getSQL')
->will($this->returnValue('QUERY'));
@@ -635,9 +636,9 @@ class FeedMapperTest extends MapperTestUtility
->withConsecutive(['id IN (:idList)'], ['unread != :unread'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(3))
->method('setParameter')
- ->withConsecutive(['unread', false], ['idList', [1, 2]])
+ ->withConsecutive(['unread', false], ['idList', [1, 2]], ['last_modified'])
->will($this->returnSelf());
$this->builder->expects($this->exactly(1))
diff --git a/tests/Unit/Db/FolderMapperTest.php b/tests/Unit/Db/FolderMapperTest.php
index 1d621b501..db43f64e1 100644
--- a/tests/Unit/Db/FolderMapperTest.php
+++ b/tests/Unit/Db/FolderMapperTest.php
@@ -361,9 +361,9 @@ class FolderMapperTest extends MapperTestUtility
->withConsecutive(['id IN (:idList)'], ['unread != :unread'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(3))
->method('setParameter')
- ->withConsecutive(['unread', false], ['idList', [1, 2]])
+ ->withConsecutive(['unread', false], ['idList', [1, 2]], ['last_modified'])
->will($this->returnSelf());
$this->builder->expects($this->exactly(1))
@@ -464,9 +464,9 @@ class FolderMapperTest extends MapperTestUtility
->withConsecutive(['id IN (:idList)'], ['unread != :unread'])
->will($this->returnSelf());
- $this->builder->expects($this->exactly(2))
+ $this->builder->expects($this->exactly(3))
->method('setParameter')
- ->withConsecutive(['unread', false], ['idList', [1, 2]])
+ ->withConsecutive(['unread', false], ['idList', [1, 2]], ['last_modified'])
->will($this->returnSelf());
$this->builder->expects($this->exactly(1))