diff options
author | anoy <anoymouserver+github@mailbox.org> | 2021-07-17 19:33:36 +0200 |
---|---|---|
committer | anoy <anoymouserver@users.noreply.github.com> | 2021-07-17 20:31:29 +0200 |
commit | ed066a812914b84c8f0c44e0e6be432638a3e038 (patch) | |
tree | 8311efdc0706f0ae53625bf2cb41cb2e2be85d03 /tests/Unit/Db/ItemMapperPaginatedTest.php | |
parent | 6515a297d8f54594b77b95dd4bcf245544fdb21e (diff) |
adapt tests to QBMapper changes in NC22
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'tests/Unit/Db/ItemMapperPaginatedTest.php')
-rw-r--r-- | tests/Unit/Db/ItemMapperPaginatedTest.php | 64 |
1 files changed, 32 insertions, 32 deletions
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') |