aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/Controller/AppsControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/provisioning_api/tests/Controller/AppsControllerTest.php')
-rw-r--r--apps/provisioning_api/tests/Controller/AppsControllerTest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/provisioning_api/tests/Controller/AppsControllerTest.php b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
index 51980ce7ed2..bbcabfddd8b 100644
--- a/apps/provisioning_api/tests/Controller/AppsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/AppsControllerTest.php
@@ -11,8 +11,10 @@ use OCA\Provisioning_API\Controller\AppsController;
use OCA\Provisioning_API\Tests\TestCase;
use OCP\App\IAppManager;
use OCP\AppFramework\OCS\OCSException;
+use OCP\IGroupManager;
use OCP\IRequest;
use OCP\IUserSession;
+use OCP\Server;
/**
* Class AppsTest
@@ -32,9 +34,9 @@ class AppsControllerTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $this->appManager = \OC::$server->getAppManager();
- $this->groupManager = \OC::$server->getGroupManager();
- $this->userSession = \OC::$server->getUserSession();
+ $this->appManager = Server::get(IAppManager::class);
+ $this->groupManager = Server::get(IGroupManager::class);
+ $this->userSession = Server::get(IUserSession::class);
$request = $this->getMockBuilder(IRequest::class)
->disableOriginalConstructor()