diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-03-15 17:03:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 17:03:54 +0100 |
commit | eb61f6b0656bfbbc624a19d9e57a62568c2905ce (patch) | |
tree | e8841642078aea928a6b35df294aa6ee53cfff59 /tests/lib/ServerTest.php | |
parent | 27886aa18487df48a195279bd64a8460464495dc (diff) | |
parent | 69108321700f0cd9c471f4e1ce25ed993873f33b (diff) | |
download | nextcloud-server-eb61f6b0656bfbbc624a19d9e57a62568c2905ce.tar.gz nextcloud-server-eb61f6b0656bfbbc624a19d9e57a62568c2905ce.zip |
Merge pull request #40117 from summersab/refactor/OC-Server-getCommentsManager
Diffstat (limited to 'tests/lib/ServerTest.php')
-rw-r--r-- | tests/lib/ServerTest.php | 3 |
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); |