diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-25 15:39:20 +0100 |
---|---|---|
committer | blizzz (Rebase PR Action) <blizzz@users.noreply.github.com> | 2022-03-10 17:17:20 +0000 |
commit | 605d97e460fa9d20b29720f0975f8cc2f8ba1026 (patch) | |
tree | a468a14be46a3c8c96b1c9b7344431a772c8f5e1 /apps | |
parent | 4167915b1a8fab763679074298f6d6e5863e02ab (diff) | |
download | nextcloud-server-605d97e460fa9d20b29720f0975f8cc2f8ba1026.tar.gz nextcloud-server-605d97e460fa9d20b29720f0975f8cc2f8ba1026.zip |
skip localstorage dependend trashbin test when not using local user storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/tests/StorageTest.php | 4 |
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(); |