summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
diff options
context:
space:
mode:
authorVinicius Cubas Brand <viniciuscb@gmail.com>2017-11-02 20:19:03 -0200
committerVinicius Cubas Brand <viniciuscb@gmail.com>2017-11-03 11:42:59 -0200
commitfa565750d1f94f9d3f7e2229e7ec7aadd0d06063 (patch)
tree253341362a6379131828ca97c64f52e09597bd77 /apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
parent10ca793452e75ecd276589f8ad916f3090ecb441 (diff)
downloadnextcloud-server-fa565750d1f94f9d3f7e2229e7ec7aadd0d06063.tar.gz
nextcloud-server-fa565750d1f94f9d3f7e2229e7ec7aadd0d06063.zip
User_LDAP plugins: smaller fixes
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
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();