Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/tests/Integration/AbstractIntegrationTest.php')
-rw-r--r--apps/user_ldap/tests/Integration/AbstractIntegrationTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
index 84e1e6b458a..8f9104999dd 100644
--- a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
+++ b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
@@ -68,6 +68,13 @@ abstract class AbstractIntegrationTest {
* the LDAP backend.
*/
public function init() {
+ \OC::$server->registerService('LDAPUserPluginManager', function() {
+ return new \OCA\User_LDAP\UserPluginManager();
+ });
+ \OC::$server->registerService('LDAPGroupPluginManager', function() {
+ return new \OCA\User_LDAP\GroupPluginManager();
+ });
+
$this->initLDAPWrapper();
$this->initConnection();
$this->initUserManager();