|
|
|
@ -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(); |
|
|
|
|
|
|
|
|
|