From e053feb5db40e0f07eb14c2d06686d66af001bb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Mon, 6 Dec 2021 15:33:47 +0100 Subject: [PATCH] Fix PHP deprecation warning in File/ViewTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/lib/Files/ViewTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']) -- 2.39.5