diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-02-17 02:04:42 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-02-17 02:04:42 +0100 |
commit | b740a21399fc95f29d02334433bea11559650a56 (patch) | |
tree | 237e5d5c0bb47f6075aa4690ef76a0a4db7f28b4 /apps/user_ldap/tests/Integration/AbstractIntegrationTest.php | |
parent | 2dfc8d1f461c33e2945d69dfebe874be4da97c87 (diff) | |
download | nextcloud-server-b740a21399fc95f29d02334433bea11559650a56.tar.gz nextcloud-server-b740a21399fc95f29d02334433bea11559650a56.zip |
Fix integration test by not relying on Fake instances
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests/Integration/AbstractIntegrationTest.php')
-rw-r--r-- | apps/user_ldap/tests/Integration/AbstractIntegrationTest.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php index 493fc2abace..2966180f5a1 100644 --- a/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php +++ b/apps/user_ldap/tests/Integration/AbstractIntegrationTest.php @@ -25,8 +25,10 @@ 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\LDAP; use OCA\User_LDAP\Helper; +use OCA\User_LDAP\LogWrapper; use OCA\User_LDAP\User\Manager; abstract class AbstractIntegrationTest { @@ -106,7 +108,15 @@ abstract class AbstractIntegrationTest { * @return Manager */ protected function initUserManager() { - $this->userManager = new FakeManager(); + $this->userManager = new Manager( + \OC::$server->getConfig(), + new FilesystemHelper(), + new LogWrapper(), + \OC::$server->getAvatarManager(), + new \OCP\Image(), + \OC::$server->getDatabaseConnection(), + \OC::$server->getUserManager() + ); } /** |