summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/CacheTest.php
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 /apps/files_sharing/tests/CacheTest.php
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 'apps/files_sharing/tests/CacheTest.php')
-rw-r--r--apps/files_sharing/tests/CacheTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/CacheTest.php b/apps/files_sharing/tests/CacheTest.php
index 5d5de433ee4..c891f56f3d3 100644
--- a/apps/files_sharing/tests/CacheTest.php
+++ b/apps/files_sharing/tests/CacheTest.php
@@ -66,8 +66,10 @@ class CacheTest extends TestCase {
$this->shareManager = \OC::$server->getShareManager();
- \OC_User::setDisplayName(self::TEST_FILES_SHARING_API_USER1, 'User One');
- \OC_User::setDisplayName(self::TEST_FILES_SHARING_API_USER2, 'User Two');
+
+ $userManager = \OC::$server->getUserManager();
+ $userManager->get(self::TEST_FILES_SHARING_API_USER1)->setDisplayName('User One');
+ $userManager->get(self::TEST_FILES_SHARING_API_USER2)->setDisplayName('User Two');
self::loginHelper(self::TEST_FILES_SHARING_API_USER1);