summaryrefslogtreecommitdiffstats
path: root/tests/lib/Traits
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-16 13:27:45 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-16 18:39:11 +0100
commit55532f19d90b40f7f46354b92a5322676729ba7e (patch)
treec29ee88dbb789c7c0aa9c9f1c08fccef27272d7f /tests/lib/Traits
parenta159d7c28c483a2b77e2f533795f6d6d1ec720fd (diff)
downloadnextcloud-server-55532f19d90b40f7f46354b92a5322676729ba7e.tar.gz
nextcloud-server-55532f19d90b40f7f46354b92a5322676729ba7e.zip
Cleanup OC_User and OCP\User
* mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/Traits')
-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);
}
}