summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/FeedMapperTest.php
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2021-07-17 19:33:36 +0200
committeranoy <anoymouserver@users.noreply.github.com>2021-07-17 20:31:29 +0200
commited066a812914b84c8f0c44e0e6be432638a3e038 (patch)
tree8311efdc0706f0ae53625bf2cb41cb2e2be85d03 /tests/Unit/Db/FeedMapperTest.php
parent6515a297d8f54594b77b95dd4bcf245544fdb21e (diff)
adapt tests to QBMapper changes in NC22
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'tests/Unit/Db/FeedMapperTest.php')
-rw-r--r--tests/Unit/Db/FeedMapperTest.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/Unit/Db/FeedMapperTest.php b/tests/Unit/Db/FeedMapperTest.php
index ad2417b53..c42ffee67 100644
--- a/tests/Unit/Db/FeedMapperTest.php
+++ b/tests/Unit/Db/FeedMapperTest.php
@@ -119,8 +119,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(3))
->method('fetch')
@@ -169,8 +169,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(2))
->method('fetch')
@@ -218,8 +218,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(1))
->method('fetch')
@@ -266,8 +266,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(2))
->method('fetch')
@@ -316,8 +316,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(2))
->method('fetch')
@@ -355,8 +355,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(3))
->method('fetch')
@@ -400,8 +400,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(3))
->method('fetch')
@@ -440,8 +440,8 @@ class FeedMapperTest extends MapperTestUtility
->will($this->returnSelf());
$this->builder->expects($this->once())
- ->method('execute')
- ->will($this->returnValue($this->cursor));
+ ->method('executeQuery')
+ ->willReturn($this->cursor);
$this->cursor->expects($this->exactly(3))
->method('fetch')