aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/ServerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/ServerTest.php')
-rw-r--r--tests/lib/ServerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/ServerTest.php b/tests/lib/ServerTest.php
index d9f95e9eab1..90f47eba231 100644
--- a/tests/lib/ServerTest.php
+++ b/tests/lib/ServerTest.php
@@ -26,6 +26,7 @@ namespace Test;
use OC\App\AppStore\Fetcher\AppFetcher;
use OC\App\AppStore\Fetcher\CategoryFetcher;
+use OCP\Comments\ICommentsManager;
/**
* Class Server
@@ -185,7 +186,7 @@ class ServerTest extends \Test\TestCase {
$config->setSystemValue('comments.managerFactory', '\Test\Comments\FakeFactory');
- $manager = $this->server->getCommentsManager();
+ $manager = $this->server->get(ICommentsManager::class);
$this->assertInstanceOf('\OCP\Comments\ICommentsManager', $manager);
$config->setSystemValue('comments.managerFactory', $defaultManagerFactory);