summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-02-17 08:56:55 +0100
committerGitHub <noreply@github.com>2021-02-17 08:56:55 +0100
commit644e6df02ee6fba6e396d88c89ad5d4c8b7483e0 (patch)
tree0a14db588788aa85a31fa3177a0c7def611b6dec /apps
parentec3d7f7d979b99cc02a777b2d4597cecef4fb781 (diff)
parent645f83121eb9bdc936c404ac8dbad346c2b934e3 (diff)
downloadnextcloud-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.php4
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())