diff options
author | Robin Appelman <robin@icewind.nl> | 2023-02-06 18:56:54 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-02-07 15:50:10 +0100 |
commit | 9f3dbb699a4e1e0fbfc55e1fb9bb070e26816e20 (patch) | |
tree | a502b5711981e53221cea6c2fbd216478a9085a8 /tests | |
parent | e3bafcc7a813f6adb305c2e35057b925c278d4bd (diff) | |
download | nextcloud-server-9f3dbb699a4e1e0fbfc55e1fb9bb070e26816e20.tar.gz nextcloud-server-9f3dbb699a4e1e0fbfc55e1fb9bb070e26816e20.zip |
fix tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/ViewTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php index 2189e7c09f4..95d9a8e3051 100644 --- a/tests/lib/Files/ViewTest.php +++ b/tests/lib/Files/ViewTest.php @@ -1590,6 +1590,9 @@ class ViewTest extends \Test\TestCase { ->setConstructorArgs([[]]) ->getMock(); $storage->method('getId')->willReturn('non-null-id'); + $storage->method('getStorageCache')->willReturnCallback(function () use ($storage) { + return new \OC\Files\Cache\Storage($storage); + }); $mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class) ->setMethods(['moveMount']) |