Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-04 16:44:05 +0300
committerGitHub <noreply@github.com>2022-03-04 16:44:05 +0300
commit8b22a463e9b16282860991004430ba54e5e75dbc (patch)
treef7f66797543781441097697c7aef7b1245e0d206 /apps/files_trashbin
parent821a0dc87594c717e785027b81134bf8783913c9 (diff)
parentec15020777c9f0de248ced8b83fe48767c2919b6 (diff)
Merge pull request #31266 from nextcloud/root-setup-mountprovider
move root mount setup to mountproviders
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/tests/StorageTest.php4
1 files changed, 4 insertions, 0 deletions
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();