From 605d97e460fa9d20b29720f0975f8cc2f8ba1026 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 25 Feb 2022 15:39:20 +0100 Subject: skip localstorage dependend trashbin test when not using local user storage Signed-off-by: Robin Appelman --- apps/files_trashbin/tests/StorageTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php index 448c3a6adb1..0a7a129ca28 100644 --- a/apps/files_trashbin/tests/StorageTest.php +++ b/apps/files_trashbin/tests/StorageTest.php @@ -33,6 +33,7 @@ namespace OCA\Files_Trashbin\Tests; use OC\Files\Filesystem; use OC\Files\Storage\Common; +use OC\Files\Storage\Local; use OC\Files\Storage\Temporary; use OCA\Files_Trashbin\AppInfo\Application; use OCA\Files_Trashbin\Events\MoveToTrashEvent; @@ -661,6 +662,9 @@ class StorageTest extends \Test\TestCase { } public function testMoveFromStoragePreserveFileId() { + if (!$this->userView->getMount('')->getStorage()->instanceOfStorage(Local::class)) { + $this->markTestSkipped("Skipping on non-local users storage"); + } $this->userView->file_put_contents('test.txt', 'foo'); $fileId = $this->userView->getFileInfo('test.txt')->getId(); -- cgit v1.2.3