summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-02-06 18:56:54 +0100
committerRobin Appelman <robin@icewind.nl>2023-02-07 15:50:10 +0100
commit9f3dbb699a4e1e0fbfc55e1fb9bb070e26816e20 (patch)
treea502b5711981e53221cea6c2fbd216478a9085a8 /tests
parente3bafcc7a813f6adb305c2e35057b925c278d4bd (diff)
downloadnextcloud-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.php3
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'])