summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-02-25 15:39:20 +0100
committerRobin Appelman <robin@icewind.nl>2022-02-25 15:39:20 +0100
commit0235764f7039a80b94363c7a8f4c7ff89e347389 (patch)
treee4606f08071ab51831cf83fa41d0127e775bae05 /apps/files_trashbin
parentb0ce876f41f6593373505a67a2fe5737c21fa6b6 (diff)
downloadnextcloud-server-0235764f7039a80b94363c7a8f4c7ff89e347389.tar.gz
nextcloud-server-0235764f7039a80b94363c7a8f4c7ff89e347389.zip
skip localstorage dependend trashbin test when not using local user storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
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();