diff options
author | Joas Schilling <coding@schilljs.com> | 2021-02-02 15:45:34 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-02-15 10:36:08 +0100 |
commit | 645f83121eb9bdc936c404ac8dbad346c2b934e3 (patch) | |
tree | 4556c7b6e70064271ec8f49176a7fd5545d86cea /apps/user_ldap/tests/LDAPProviderTest.php | |
parent | b418a680e7431dd39acfdc1c52c693ae777a8c83 (diff) | |
download | nextcloud-server-645f83121eb9bdc936c404ac8dbad346c2b934e3.tar.gz nextcloud-server-645f83121eb9bdc936c404ac8dbad346c2b934e3.zip |
Cache the user backend info for 300s
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap/tests/LDAPProviderTest.php')
-rw-r--r-- | apps/user_ldap/tests/LDAPProviderTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/LDAPProviderTest.php b/apps/user_ldap/tests/LDAPProviderTest.php index eec5f732738..0f1480d6930 100644 --- a/apps/user_ldap/tests/LDAPProviderTest.php +++ b/apps/user_ldap/tests/LDAPProviderTest.php @@ -35,6 +35,7 @@ use OCA\User_LDAP\Connection; use OCA\User_LDAP\IGroupLDAP; use OCA\User_LDAP\IUserLDAP; use OCP\EventDispatcher\IEventDispatcher; +use OCP\ICacheFactory; use OCP\IConfig; use OCP\IServerContainer; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -78,7 +79,8 @@ class LDAPProviderTest extends \Test\TestCase { ->setConstructorArgs([ $this->createMock(IConfig::class), $this->createMock(EventDispatcherInterface::class), - $this->createMock(IEventDispatcher::class) + $this->createMock(ICacheFactory::class), + $this->createMock(IEventDispatcher::class), ]) ->getMock(); $userManager->expects($this->any()) |