aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-13 17:22:19 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-13 17:22:19 +0200
commit3203286f52fcca102e8458c9ca0df4b500d1d348 (patch)
treef2317f72d0e47f4fc48c8bd7b7c3c61c54a460c4 /apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
parent2c87ce60a04eb98533d430ef7abe386ef0d04c2a (diff)
downloadnextcloud-server-3203286f52fcca102e8458c9ca0df4b500d1d348.tar.gz
nextcloud-server-3203286f52fcca102e8458c9ca0df4b500d1d348.zip
Do not use custom DI object names for user_ldap
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/user_ldap/tests/Integration/AbstractIntegrationTest.php')
-rw-r--r--apps/user_ldap/tests/Integration/AbstractIntegrationTest.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
index ff57d56b47e..2bbea237090 100644
--- a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
+++ b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php
@@ -30,10 +30,12 @@ namespace OCA\User_LDAP\Tests\Integration;
use OCA\User_LDAP\Access;
use OCA\User_LDAP\Connection;
use OCA\User_LDAP\FilesystemHelper;
+use OCA\User_LDAP\GroupPluginManager;
use OCA\User_LDAP\Helper;
use OCA\User_LDAP\LDAP;
use OCA\User_LDAP\LogWrapper;
use OCA\User_LDAP\User\Manager;
+use OCA\User_LDAP\UserPluginManager;
abstract class AbstractIntegrationTest {
/** @var LDAP */
@@ -47,7 +49,7 @@ abstract class AbstractIntegrationTest {
/** @var Manager */
protected $userManager;
-
+
/** @var Helper */
protected $helper;
@@ -72,10 +74,10 @@ abstract class AbstractIntegrationTest {
* the LDAP backend.
*/
public function init() {
- \OC::$server->registerService('LDAPUserPluginManager', function () {
+ \OC::$server->registerService(UserPluginManager::class, function () {
return new \OCA\User_LDAP\UserPluginManager();
});
- \OC::$server->registerService('LDAPGroupPluginManager', function () {
+ \OC::$server->registerService(GroupPluginManager::class, function () {
return new \OCA\User_LDAP\GroupPluginManager();
});
@@ -128,7 +130,7 @@ abstract class AbstractIntegrationTest {
\OC::$server->getNotificationManager()
);
}
-
+
/**
* initializes the test Helper
*/