diff options
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r-- | apps/provisioning_api/tests/groupstest.php | 6 | ||||
-rw-r--r-- | apps/provisioning_api/tests/userstest.php | 5 |
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 |