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/ItemMapperPaginatedTest.php | 64 +++++++++++++++---------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'tests/Unit/Db/ItemMapperPaginatedTest.php') diff --git a/tests/Unit/Db/ItemMapperPaginatedTest.php b/tests/Unit/Db/ItemMapperPaginatedTest.php index 652e2fa98..9d44e0756 100644 --- a/tests/Unit/Db/ItemMapperPaginatedTest.php +++ b/tests/Unit/Db/ItemMapperPaginatedTest.php @@ -98,8 +98,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->never()) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->never()) ->method('fetch') @@ -164,8 +164,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -235,8 +235,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -304,8 +304,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -376,8 +376,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -460,8 +460,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -533,8 +533,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -604,8 +604,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -675,8 +675,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -749,8 +749,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -833,8 +833,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -918,8 +918,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -1001,8 +1001,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -1087,8 +1087,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -1173,8 +1173,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') @@ -1263,8 +1263,8 @@ class ItemMapperPaginatedTest extends MapperTestUtility ->willReturnSelf(); $this->builder->expects($this->exactly(1)) - ->method('execute') - ->will($this->returnValue($this->cursor)); + ->method('executeQuery') + ->willReturn($this->cursor); $this->cursor->expects($this->exactly(2)) ->method('fetch') -- cgit v1.2.3