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 /tests/lib/Files/Config/UserMountCacheTest.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 'tests/lib/Files/Config/UserMountCacheTest.php')
-rw-r--r-- | tests/lib/Files/Config/UserMountCacheTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php index 2bea4f8389a..d170049aab5 100644 --- a/tests/lib/Files/Config/UserMountCacheTest.php +++ b/tests/lib/Files/Config/UserMountCacheTest.php @@ -15,6 +15,7 @@ use OC\Log; use OC\User\Manager; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Config\ICachedMountInfo; +use OCP\ICacheFactory; use OCP\IConfig; use OCP\IDBConnection; use OCP\IUserManager; @@ -46,7 +47,7 @@ class UserMountCacheTest extends TestCase { protected function setUp(): void { $this->fileIds = []; $this->connection = \OC::$server->getDatabaseConnection(); - $this->userManager = new Manager($this->createMock(IConfig::class), $this->createMock(EventDispatcherInterface::class), $this->createMock(IEventDispatcher::class)); + $this->userManager = new Manager($this->createMock(IConfig::class), $this->createMock(EventDispatcherInterface::class), $this->createMock(ICacheFactory::class), $this->createMock(IEventDispatcher::class)); $userBackend = new Dummy(); $userBackend->createUser('u1', ''); $userBackend->createUser('u2', ''); |