add missing INotificationManager when creating User backend, LDAP
UserManager Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
de953b4d74
commit
10ef98a3b1
|
@ -105,7 +105,6 @@ abstract class AbstractIntegrationTest {
|
|||
|
||||
/**
|
||||
* initializes an LDAP user manager instance
|
||||
* @return Manager
|
||||
*/
|
||||
protected function initUserManager() {
|
||||
$this->userManager = new Manager(
|
||||
|
@ -115,7 +114,8 @@ abstract class AbstractIntegrationTest {
|
|||
\OC::$server->getAvatarManager(),
|
||||
new \OCP\Image(),
|
||||
\OC::$server->getDatabaseConnection(),
|
||||
\OC::$server->getUserManager()
|
||||
\OC::$server->getUserManager(),
|
||||
\OC::$server->getNotificationManager()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class IntegrationTestAttributeDetection extends AbstractIntegrationTest {
|
|||
$groupMapper->clear();
|
||||
$this->access->setGroupMapper($groupMapper);
|
||||
|
||||
$userBackend = new User_LDAP($this->access, \OC::$server->getConfig());
|
||||
$userBackend = new User_LDAP($this->access, \OC::$server->getConfig(), \OC::$server->getNotificationManager());
|
||||
$userManager = \OC::$server->getUserManager();
|
||||
$userManager->clearBackends();
|
||||
$userManager->registerBackend($userBackend);
|
||||
|
|
|
@ -48,7 +48,7 @@ class IntegrationTestUserHome extends AbstractIntegrationTest {
|
|||
$this->mapping = new UserMapping(\OC::$server->getDatabaseConnection());
|
||||
$this->mapping->clear();
|
||||
$this->access->setUserMapper($this->mapping);
|
||||
$this->backend = new \OCA\User_LDAP\User_LDAP($this->access, \OC::$server->getConfig(), \OC::$server->getNotificationManager());
|
||||
$this->backend = new User_LDAP($this->access, \OC::$server->getConfig(), \OC::$server->getNotificationManager());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,8 @@ class IntegrationTestUserHome extends AbstractIntegrationTest {
|
|||
\OC::$server->getAvatarManager(),
|
||||
new \OCP\Image(),
|
||||
\OC::$server->getDatabaseConnection(),
|
||||
\OC::$server->getUserManager()
|
||||
\OC::$server->getUserManager(),
|
||||
\OC::$server->getNotificationManager()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue