adjust tests accordingly
This commit is contained in:
parent
64679b2e62
commit
450de0091a
|
@ -287,7 +287,7 @@ class Group extends \PHPUnit_Framework_TestCase {
|
|||
->will($this->returnValue(array('user2')));
|
||||
$backend2->expects($this->once())
|
||||
->method('usersInGroup')
|
||||
->with('group1', 'user', 1, 0)
|
||||
->with('group1', 'user', 2, 1)
|
||||
->will($this->returnValue(array('user1')));
|
||||
|
||||
$users = $group->searchUsers('user', 2, 1);
|
||||
|
|
|
@ -254,7 +254,7 @@ class Manager extends \PHPUnit_Framework_TestCase {
|
|||
$backend2 = $this->getMock('\OC_Group_Database');
|
||||
$backend2->expects($this->once())
|
||||
->method('getGroups')
|
||||
->with('1', 1, 0)
|
||||
->with('1', 2, 1)
|
||||
->will($this->returnValue(array('group12')));
|
||||
$backend2->expects($this->any())
|
||||
->method('groupExists')
|
||||
|
|
|
@ -210,7 +210,7 @@ class Manager extends \PHPUnit_Framework_TestCase {
|
|||
$backend2 = $this->getMock('\OC_User_Dummy');
|
||||
$backend2->expects($this->once())
|
||||
->method('getUsers')
|
||||
->with($this->equalTo('fo'), $this->equalTo(1), $this->equalTo(0))
|
||||
->with($this->equalTo('fo'), $this->equalTo(3), $this->equalTo(1))
|
||||
->will($this->returnValue(array('foo3')));
|
||||
|
||||
$manager = new \OC\User\Manager();
|
||||
|
|
Loading…
Reference in New Issue