diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-25 20:42:03 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-25 20:42:03 +0200 |
commit | 7ebd96416ca9150a4d524547a18b5fce269016ca (patch) | |
tree | e83a6c34e9955c9b1a2894e9dac40417245db28c /apps/user_ldap | |
parent | 6c8caa1641732c57fe59483fc2cdd5bcd7bd0163 (diff) | |
download | nextcloud-server-7ebd96416ca9150a4d524547a18b5fce269016ca.tar.gz nextcloud-server-7ebd96416ca9150a4d524547a18b5fce269016ca.zip |
Remove deprecated OCP\User::getDisplayname
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/tests/User_LDAPTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php index 270e3eedbfd..2b5952c9742 100644 --- a/apps/user_ldap/tests/User_LDAPTest.php +++ b/apps/user_ldap/tests/User_LDAPTest.php @@ -1094,11 +1094,11 @@ class User_LDAPTest extends TestCase { ->willReturnCallback(function($uuid) { return $uuid . '1'; }); //with displayName - $result = \OCP\User::getDisplayName('gunslinger'); + $result = \OC::$server->getUserManager()->get('gunslinger')->getDisplayName(); $this->assertEquals('Roland Deschain', $result); //empty displayname retrieved - $result = \OCP\User::getDisplayName('newyorker'); + $result = \OC::$server->getUserManager()->get('newyorker')->getDisplayName(); $this->assertEquals('newyorker', $result); } |