summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/userstest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-20 21:47:37 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-20 21:47:37 +0200
commitaeffd511459bbefc4b2a338e67494786e14a6eee (patch)
tree021a3752ed0dd1ae9d379d7e872f9071730f618b /apps/provisioning_api/tests/userstest.php
parenta0e479342c9f5f293e7c83be101b47c8e2ac8891 (diff)
downloadnextcloud-server-aeffd511459bbefc4b2a338e67494786e14a6eee.tar.gz
nextcloud-server-aeffd511459bbefc4b2a338e67494786e14a6eee.zip
Fix scrutinizer issues
* PHPDoc * Proper array initialization
Diffstat (limited to 'apps/provisioning_api/tests/userstest.php')
-rw-r--r--apps/provisioning_api/tests/userstest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/userstest.php b/apps/provisioning_api/tests/userstest.php
index 3869af87e5a..673383edae6 100644
--- a/apps/provisioning_api/tests/userstest.php
+++ b/apps/provisioning_api/tests/userstest.php
@@ -234,7 +234,7 @@ class UsersTest extends TestCase {
$user = $this->generateUsers();
$user->setDisplayName('foobar');
$this->userSession->setUser($user);
- $params['userid'] = $user->getUID();
+ $params = ['userid' => $user->getUID()];
$result = $this->api->getUser($params);
$this->assertInstanceOf('OC_OCS_Result', $result);
$this->assertTrue($result->succeeded());
@@ -261,7 +261,7 @@ class UsersTest extends TestCase {
public function testGetUserOnOtherUser() {
$users = $this->generateUsers(2);
- $params['userid'] = $users[0];
+ $params = ['userid' => $users[0]->getUID()];
$this->userSession->setUser($users[1]);
$result = $this->api->getUser($params);
$this->assertInstanceOf('OC_OCS_Result', $result);