diff options
Diffstat (limited to 'tests/Unit/Db/FolderMapperTest.php')
-rw-r--r-- | tests/Unit/Db/FolderMapperTest.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/Unit/Db/FolderMapperTest.php b/tests/Unit/Db/FolderMapperTest.php index ad44d618f..3e15e8004 100644 --- a/tests/Unit/Db/FolderMapperTest.php +++ b/tests/Unit/Db/FolderMapperTest.php @@ -81,8 +81,8 @@ class FolderMapperTest 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') @@ -131,8 +131,8 @@ class FolderMapperTest 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') @@ -180,8 +180,8 @@ class FolderMapperTest 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') @@ -229,8 +229,8 @@ class FolderMapperTest 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') @@ -268,8 +268,8 @@ class FolderMapperTest 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') |