aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/ViewTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index eed8bca957f..15c9400864b 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -12,6 +12,7 @@ use OC\Files\Cache\Watcher;
use OC\Files\Filesystem;
use OC\Files\Mount\MountPoint;
use OC\Files\Storage\Common;
+use OC\Files\Storage\Storage;
use OC\Files\Storage\Temporary;
use OC\Files\View;
use OCP\Constants;
@@ -1576,9 +1577,11 @@ class ViewTest extends \Test\TestCase {
private function createTestMovableMountPoints($mountPoints) {
$mounts = [];
foreach ($mountPoints as $mountPoint) {
- $storage = $this->getMockBuilder(Temporary::class)
+ $storage = $this->getMockBuilder(Storage::class)
->setMethods([])
+ ->setConstructorArgs([[]])
->getMock();
+ $storage->method('getId')->willReturn('non-null-id');
$mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class)
->setMethods(['moveMount'])