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/Stream | |
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/Stream')
-rw-r--r-- | tests/lib/Files/Stream/EncryptionTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/Files/Stream/EncryptionTest.php b/tests/lib/Files/Stream/EncryptionTest.php index 08264f07fcf..5516c0bf658 100644 --- a/tests/lib/Files/Stream/EncryptionTest.php +++ b/tests/lib/Files/Stream/EncryptionTest.php @@ -7,6 +7,7 @@ use OC\Files\View; use OC\Memcache\ArrayCache; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Cache\ICache; +use OCP\ICacheFactory; use OCP\IConfig; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -49,7 +50,12 @@ class EncryptionTest extends \Test\TestCase { $file->expects($this->any())->method('getAccessList')->willReturn([]); $util = $this->getMockBuilder('\OC\Encryption\Util') ->setMethods(['getUidAndFilename']) - ->setConstructorArgs([new View(), new \OC\User\Manager($config, $this->createMock(EventDispatcherInterface::class), $this->createMock(IEventDispatcher::class)), $groupManager, $config, $arrayCache]) + ->setConstructorArgs([new View(), new \OC\User\Manager( + $config, + $this->createMock(EventDispatcherInterface::class), + $this->createMock(ICacheFactory::class), + $this->createMock(IEventDispatcher::class) + ), $groupManager, $config, $arrayCache]) ->getMock(); $util->expects($this->any()) ->method('getUidAndFilename') |