summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-15 17:53:57 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-04-15 17:53:57 +0200
commit450de0091abe137110d57005280ff56fa2914b92 (patch)
tree9e2c6efa89ff7cf3191ae6e27dac7e51570eec38 /tests
parent64679b2e62909df9b3e493a0dc22151b5baae1a6 (diff)
downloadnextcloud-server-450de0091abe137110d57005280ff56fa2914b92.tar.gz
nextcloud-server-450de0091abe137110d57005280ff56fa2914b92.zip
adjust tests accordingly
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/group/group.php2
-rw-r--r--tests/lib/group/manager.php2
-rw-r--r--tests/lib/user/manager.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/group/group.php b/tests/lib/group/group.php
index 147532f9947..990f8ecc1d5 100644
--- a/tests/lib/group/group.php
+++ b/tests/lib/group/group.php
@@ -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);
diff --git a/tests/lib/group/manager.php b/tests/lib/group/manager.php
index 90f0e1b35e2..a03997c58eb 100644
--- a/tests/lib/group/manager.php
+++ b/tests/lib/group/manager.php
@@ -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')
diff --git a/tests/lib/user/manager.php b/tests/lib/user/manager.php
index ad1ac9e12f2..8ca0f94c6fa 100644
--- a/tests/lib/user/manager.php
+++ b/tests/lib/user/manager.php
@@ -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();