aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-02 15:45:34 +0100
committerJoas Schilling <coding@schilljs.com>2021-02-15 10:36:08 +0100
commit645f83121eb9bdc936c404ac8dbad346c2b934e3 (patch)
tree4556c7b6e70064271ec8f49176a7fd5545d86cea /apps/user_ldap/tests
parentb418a680e7431dd39acfdc1c52c693ae777a8c83 (diff)
downloadnextcloud-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')
-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())