diff options
Diffstat (limited to 'tests/lib/group/manager.php')
-rw-r--r-- | tests/lib/group/manager.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/group/manager.php b/tests/lib/group/manager.php index 2ecaefc1406..9d3adf51a0c 100644 --- a/tests/lib/group/manager.php +++ b/tests/lib/group/manager.php @@ -17,7 +17,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend */ $backend = $this->getMock('\OC_Group_Database'); - $backend->expects($this->once()) + $backend->expects($this->any()) ->method('groupExists') ->with('group1') ->will($this->returnValue(true)); @@ -85,7 +85,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend1 */ $backend1 = $this->getMock('\OC_Group_Database'); - $backend1->expects($this->once()) + $backend1->expects($this->any()) ->method('groupExists') ->with('group1') ->will($this->returnValue(false)); @@ -94,7 +94,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend2 */ $backend2 = $this->getMock('\OC_Group_Database'); - $backend2->expects($this->once()) + $backend2->expects($this->any()) ->method('groupExists') ->with('group1') ->will($this->returnValue(true)); @@ -117,7 +117,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend */ $backend = $this->getMock('\OC_Group_Database'); - $backend->expects($this->once()) + $backend->expects($this->any()) ->method('groupExists') ->with('group1') ->will($this->returnValue(false)); @@ -143,7 +143,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend */ $backend = $this->getMock('\OC_Group_Database'); - $backend->expects($this->once()) + $backend->expects($this->any()) ->method('groupExists') ->with('group1') ->will($this->returnValue(true)); |