skip localstorage dependend trashbin test when not using local user storage

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/31266/head
Robin Appelman 4 years ago
parent b0ce876f41
commit 0235764f70
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 4
      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();

Loading…
Cancel
Save