mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
skip localstorage dependend trashbin test when not using local user storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
4167915b1a
commit
605d97e460
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue