summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-25 15:01:31 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-02 10:22:26 +0200
commit97d79202ac628b004f5d9e167b5b8c9a36da9906 (patch)
treedba3fca8354e5bcb4487805da8e2e0f32b98a92c /apps/provisioning_api/tests
parent9f59add9ed596a156ae18ce8e28d1bfc9b596617 (diff)
downloadnextcloud-server-97d79202ac628b004f5d9e167b5b8c9a36da9906.tar.gz
nextcloud-server-97d79202ac628b004f5d9e167b5b8c9a36da9906.zip
[provisioning_api] OC_User to IUserSession
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r--apps/provisioning_api/tests/groupstest.php6
-rw-r--r--apps/provisioning_api/tests/userstest.php5
2 files changed, 9 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/groupstest.php b/apps/provisioning_api/tests/groupstest.php
index 5a757151bb4..0cebd6e9d94 100644
--- a/apps/provisioning_api/tests/groupstest.php
+++ b/apps/provisioning_api/tests/groupstest.php
@@ -31,7 +31,11 @@ class GroupsTest extends TestCase {
$this->userManager = \OC::$server->getUserManager();
$this->groupManager = \OC::$server->getGroupManager();
- $this->api = new \OCA\Provisioning_API\Groups($this->groupManager);
+ $this->userSession = \OC::$server->getUserSession();
+ $this->api = new \OCA\Provisioning_API\Groups(
+ $this->groupManager,
+ $this->userSession
+ );
}
public function testGetGroupAsUser() {
diff --git a/apps/provisioning_api/tests/userstest.php b/apps/provisioning_api/tests/userstest.php
index dac6e33d2aa..941b24d0f86 100644
--- a/apps/provisioning_api/tests/userstest.php
+++ b/apps/provisioning_api/tests/userstest.php
@@ -38,10 +38,13 @@ class UsersTest extends TestCase {
$this->userManager = \OC::$server->getUserManager();
$this->config = \OC::$server->getConfig();
$this->groupManager = \OC::$server->getGroupManager();
+ $this->userSession = \OC::$server->getUserSession();
$this->api = new \OCA\Provisioning_Api\Users(
$this->userManager,
$this->config,
- $this->groupManager);
+ $this->groupManager,
+ $this->userSession
+ );
}
// Test getting the list of users