summaryrefslogtreecommitdiffstats
path: root/tests/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-12 16:42:25 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-12 16:42:25 +0100
commitd5b26e682cc94c62b8ad1360d4be1e74a55f22a9 (patch)
treedb3771d616bb6bcd7cc682b7438a18d7d9f5bf5f /tests/settings
parent26b0a89874dc1a3279471b9fbf35420d63fd45dd (diff)
downloadnextcloud-server-d5b26e682cc94c62b8ad1360d4be1e74a55f22a9.tar.gz
nextcloud-server-d5b26e682cc94c62b8ad1360d4be1e74a55f22a9.zip
Use array key instead of value
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/controller/userscontrollertest.php17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/settings/controller/userscontrollertest.php b/tests/settings/controller/userscontrollertest.php
index 78b855fd3f1..89ef8bcf8a6 100644
--- a/tests/settings/controller/userscontrollertest.php
+++ b/tests/settings/controller/userscontrollertest.php
@@ -126,9 +126,20 @@ class UsersControllerTest extends \Test\TestCase {
->method('getUserGroupIds')
->will($this->onConsecutiveCalls(array('Users', 'Support'), array('admins', 'Support'), array('External Users')));
$this->container['UserManager']
- ->expects($this->exactly(3))
+ ->expects($this->at(0))
+ ->method('get')
+ ->with('foo')
+ ->will($this->returnValue($foo));
+ $this->container['UserManager']
+ ->expects($this->at(1))
+ ->method('get')
+ ->with('admin')
+ ->will($this->returnValue($admin));
+ $this->container['UserManager']
+ ->expects($this->at(2))
->method('get')
- ->will($this->onConsecutiveCalls($foo, $admin, $bar));
+ ->with('bar')
+ ->will($this->returnValue($bar));
$this->container['Config']
->expects($this->exactly(3))
->method('getUserValue')
@@ -168,7 +179,7 @@ class UsersControllerTest extends \Test\TestCase {
),
)
);
- $response = $this->usersController->index(0, 10, 'pattern');
+ $response = $this->usersController->index(0, 10, 'gid', 'pattern');
$this->assertEquals($expectedResponse, $response);
}