diff options
author | Simon Vocella <voxsim@gmail.com> | 2014-09-25 00:56:23 +0400 |
---|---|---|
committer | Simon Vocella <voxsim@gmail.com> | 2014-09-25 00:56:23 +0400 |
commit | e9cc95a40383acd126fd21431765a733f536bcd6 (patch) | |
tree | 0490f94718f60ed961debdb4f8f3832eadd6a7a7 /tests | |
parent | a84250c6d1a9ef9ce0257acdc56dbc3b60ebcb53 (diff) |
Fix in stable6 after backport of #9225
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/group/manager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/group/manager.php b/tests/lib/group/manager.php index 77058ea823e..54e8fc4f893 100644 --- a/tests/lib/group/manager.php +++ b/tests/lib/group/manager.php @@ -380,6 +380,8 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \OC\User\Manager $userManager */ $userManager = $this->getMock('\OC\User\Manager'); + $userBackend = $this->getMock('\OC_User_Backend'); + $userManager->expects($this->any()) ->method('search') ->with('user3') @@ -554,7 +556,7 @@ class Manager extends \PHPUnit_Framework_TestCase { * @var \PHPUnit_Framework_MockObject_MockObject | \OC_Group_Backend $backend1 */ $backend = $this->getMock('\OC_Group_Database'); - $backend->expects($this->exactly(2)) + $backend->expects($this->exactly(1)) ->method('groupExists') ->with('testgroup') ->will($this->returnValue(true)); |