summaryrefslogtreecommitdiffstats
path: root/tests/lib/User/UserTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-02-07 11:39:55 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-15 15:13:12 +0100
commitc1152af523d742efb669d6a59aecc65f4763d723 (patch)
treed154f03004c4a2e234ef0daffd4ac6ca7c3ad69a /tests/lib/User/UserTest.php
parent20f4a8c04609e58d81037753bf1d9cd39f4e8c02 (diff)
downloadnextcloud-server-c1152af523d742efb669d6a59aecc65f4763d723.tar.gz
nextcloud-server-c1152af523d742efb669d6a59aecc65f4763d723.zip
Move deprecated aliases over to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/User/UserTest.php')
-rw-r--r--tests/lib/User/UserTest.php5
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');