diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-18 20:47:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 20:47:06 +0100 |
commit | 3e64be7b6abe9475251f1b9f6d5e22722c0cce18 (patch) | |
tree | db037a66e1abb864cb60712f7743297a30c6498a /tests/lib/User/UserTest.php | |
parent | b306a81aee7e8b67b13a68320c1ed6c2ecc3ceab (diff) | |
parent | dc7913efcdefbf1791a5a3f2815b818b9a21c0ee (diff) | |
download | nextcloud-server-3e64be7b6abe9475251f1b9f6d5e22722c0cce18.tar.gz nextcloud-server-3e64be7b6abe9475251f1b9f6d5e22722c0cce18.zip |
Merge pull request #20013 from nextcloud/bugfix/noid/fix-recursive-calls-in-logging-via-methods
Fix recursive calls in logging via server methods
Diffstat (limited to 'tests/lib/User/UserTest.php')
-rw-r--r-- | tests/lib/User/UserTest.php | 8 |
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); } |