diff options
Diffstat (limited to 'apps/provisioning_api/tests/TestCase.php')
-rw-r--r-- | apps/provisioning_api/tests/TestCase.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/TestCase.php b/apps/provisioning_api/tests/TestCase.php index de2a0120184..30e7f3a4ecf 100644 --- a/apps/provisioning_api/tests/TestCase.php +++ b/apps/provisioning_api/tests/TestCase.php @@ -10,6 +10,7 @@ namespace OCA\Provisioning_API\Tests; use OCP\IGroupManager; use OCP\IUser; use OCP\IUserManager; +use OCP\Server; abstract class TestCase extends \Test\TestCase { @@ -25,8 +26,8 @@ abstract class TestCase extends \Test\TestCase { protected function setUp(): void { parent::setUp(); - $this->userManager = \OC::$server->getUserManager(); - $this->groupManager = \OC::$server->getGroupManager(); + $this->userManager = Server::get(IUserManager::class); + $this->groupManager = Server::get(IGroupManager::class); $this->groupManager->createGroup('admin'); } |