Skip to content

Commit 50d6728

Browse files
committed
Fix PHP deprecation warning in File/ViewTest
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 5167ea1 commit 50d6728

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/lib/Files/ViewTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use OC\Files\Filesystem;
1313
use OC\Files\Mount\MountPoint;
1414
use OC\Files\Storage\Common;
15+
use OC\Files\Storage\Storage;
1516
use OC\Files\Storage\Temporary;
1617
use OC\Files\View;
1718
use OCP\Constants;
@@ -1576,9 +1577,11 @@ public function testHookPaths($root, $path, $shouldEmit) {
15761577
private function createTestMovableMountPoints($mountPoints) {
15771578
$mounts = [];
15781579
foreach ($mountPoints as $mountPoint) {
1579-
$storage = $this->getMockBuilder(Temporary::class)
1580+
$storage = $this->getMockBuilder(Storage::class)
15801581
->setMethods([])
1582+
->setConstructorArgs([[]])
15811583
->getMock();
1584+
$storage->method('getId')->willReturn('non-null-id');
15821585

15831586
$mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class)
15841587
->setMethods(['moveMount'])

0 commit comments

Comments
 (0)