diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-17 08:56:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 08:56:55 +0100 |
commit | 644e6df02ee6fba6e396d88c89ad5d4c8b7483e0 (patch) | |
tree | 0a14db588788aa85a31fa3177a0c7def611b6dec /apps | |
parent | ec3d7f7d979b99cc02a777b2d4597cecef4fb781 (diff) | |
parent | 645f83121eb9bdc936c404ac8dbad346c2b934e3 (diff) | |
download | nextcloud-server-644e6df02ee6fba6e396d88c89ad5d4c8b7483e0.tar.gz nextcloud-server-644e6df02ee6fba6e396d88c89ad5d4c8b7483e0.zip |
Merge pull request #25440 from nextcloud/bugfix/noid/cache-the-user-backend-info-for-30s
Cache the user backend info for 5mins
Diffstat (limited to 'apps')
-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()) |