From ed066a812914b84c8f0c44e0e6be432638a3e038 Mon Sep 17 00:00:00 2001 From: anoy Date: Sat, 17 Jul 2021 19:33:36 +0200 Subject: adapt tests to QBMapper changes in NC22 Signed-off-by: anoy --- tests/Unit/Db/FeedMapperTest.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'tests/Unit/Db/FeedMapperTest.php') 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') -- cgit v1.2.3