diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-17 10:43:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 10:43:48 +0100 |
commit | ae8d2bd28a987d8d49e34bfd068728ec7682ce31 (patch) | |
tree | ed4b80fd687db77f249ee54cb3980fa53ea2e3c3 /tests/lib/Files/Stream/EncryptionTest.php | |
parent | 1db95da5d1fbee2d085748c82f2cc8314e33bd8b (diff) | |
parent | a745d5813355fe60c9fc3ef2f9dff69e85a3f8d0 (diff) | |
download | nextcloud-server-ae8d2bd28a987d8d49e34bfd068728ec7682ce31.tar.gz nextcloud-server-ae8d2bd28a987d8d49e34bfd068728ec7682ce31.zip |
Merge pull request #25688 from nextcloud/backport/25440/stable21
[stable21] Cache the user backend info for 5mins
Diffstat (limited to 'tests/lib/Files/Stream/EncryptionTest.php')
-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') |