summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Group_LDAPTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 19:41:34 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 19:41:34 +0100
commitdffa922c0b3c84394b955caeabac004381e604ac (patch)
treea8fc5f1c90b5cfc23263516fed5bd8c58ecdd46b /apps/user_ldap/tests/Group_LDAPTest.php
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
downloadnextcloud-server-dffa922c0b3c84394b955caeabac004381e604ac.tar.gz
nextcloud-server-dffa922c0b3c84394b955caeabac004381e604ac.zip
Remove deprecated functions for OCP\Util
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap/tests/Group_LDAPTest.php')
-rw-r--r--apps/user_ldap/tests/Group_LDAPTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Group_LDAPTest.php b/apps/user_ldap/tests/Group_LDAPTest.php
index e758bc9bd02..03fd73f261f 100644
--- a/apps/user_ldap/tests/Group_LDAPTest.php
+++ b/apps/user_ldap/tests/Group_LDAPTest.php
@@ -150,7 +150,7 @@ class Group_LDAPTest extends \Test\TestCase {
$access->expects($this->any())
->method('dn2username')
->will($this->returnCallback(function() {
- return 'foobar' . \OCP\Util::generateRandomBytes(7);
+ return 'foobar' . \OC::$server->getSecureRandom()->generate(7);
}));
$groupBackend = new GroupLDAP($access,$pluginManager);