aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/User
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-18 10:43:54 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-18 18:59:49 +0100
commitdc7913efcdefbf1791a5a3f2815b818b9a21c0ee (patch)
treeeeae6f1d66b860d99de08a25fcfc5c9d8faef733 /tests/lib/User
parent570f3c77989120d92efbbd7a8bc5ad39288d7222 (diff)
downloadnextcloud-server-dc7913efcdefbf1791a5a3f2815b818b9a21c0ee.tar.gz
nextcloud-server-dc7913efcdefbf1791a5a3f2815b818b9a21c0ee.zip
Fix recursive calls in logging via server methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/User')
-rw-r--r--tests/lib/User/UserTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index adcb2adec58..8431f14f8a2 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -559,15 +559,15 @@ class UserTest extends TestCase {
->method('markProcessed');
}
- $this->overwriteService('NotificationManager', $notificationManager);
- $this->overwriteService('CommentsManager', $commentsManager);
+ $this->overwriteService(\OCP\Notification\IManager::class, $notificationManager);
+ $this->overwriteService(\OCP\Comments\ICommentsManager::class, $commentsManager);
$this->overwriteService(AllConfig::class, $config);
$this->assertSame($result, $user->delete());
$this->restoreService(AllConfig::class);
- $this->restoreService('CommentsManager');
- $this->restoreService('NotificationManager');
+ $this->restoreService(\OCP\Comments\ICommentsManager::class);
+ $this->restoreService(\OCP\Notification\IManager::class);
$this->assertEquals($expectedHooks, $hooksCalled);
}