diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/UserTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php index 0bf582727ff..adcb2adec58 100644 --- a/tests/lib/User/UserTest.php +++ b/tests/lib/User/UserTest.php @@ -9,6 +9,7 @@ namespace Test\User; +use OC\AllConfig; use OC\Hooks\PublicEmitter; use OC\User\User; use OCP\Comments\ICommentsManager; @@ -560,11 +561,11 @@ class UserTest extends TestCase { $this->overwriteService('NotificationManager', $notificationManager); $this->overwriteService('CommentsManager', $commentsManager); - $this->overwriteService('AllConfig', $config); + $this->overwriteService(AllConfig::class, $config); $this->assertSame($result, $user->delete()); - $this->restoreService('AllConfig'); + $this->restoreService(AllConfig::class); $this->restoreService('CommentsManager'); $this->restoreService('NotificationManager'); |