summaryrefslogtreecommitdiffstats
path: root/tests/lib/Traits/EncryptionTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Traits/EncryptionTrait.php')
-rw-r--r--tests/lib/Traits/EncryptionTrait.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Traits/EncryptionTrait.php b/tests/lib/Traits/EncryptionTrait.php
index 8a06d37fa7f..ba759a51a28 100644
--- a/tests/lib/Traits/EncryptionTrait.php
+++ b/tests/lib/Traits/EncryptionTrait.php
@@ -50,7 +50,7 @@ trait EncryptionTrait {
\OC_User::setUserId($user);
$this->postLogin();
\OC_Util::setupFS($user);
- if (\OC_User::userExists($user)) {
+ if (\OC::$server->getUserManager()->userExists($user)) {
\OC::$server->getUserFolder($user);
}
}