aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-12-06 15:33:47 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 09:43:32 +0100
commite053feb5db40e0f07eb14c2d06686d66af001bb4 (patch)
tree75dc6d5d3bc1ee13e260b012ed9d507dc38d6423 /tests
parent72baee96988bbd9d3f7d68a90bf716008946000f (diff)
downloadnextcloud-server-e053feb5db40e0f07eb14c2d06686d66af001bb4.tar.gz
nextcloud-server-e053feb5db40e0f07eb14c2d06686d66af001bb4.zip
Fix PHP deprecation warning in File/ViewTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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'])