mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix trash storage wrapper tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b94fbcebeb
commit
a369adb4cd
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ use OC\Files\Storage\Temporary;
|
|||
use OC\Files\Filesystem;
|
||||
use OCA\Files_Trashbin\Events\MoveToTrashEvent;
|
||||
use OCA\Files_Trashbin\Storage;
|
||||
use OCA\Files_Trashbin\Trash\ITrashManager;
|
||||
use OCP\Files\Cache\ICache;
|
||||
use OCP\Files\IRootFolder;
|
||||
use OCP\Files\Node;
|
||||
|
|
@ -546,6 +547,7 @@ class StorageTest extends \Test\TestCase {
|
|||
->disableOriginalConstructor()->getMock();
|
||||
$rootFolder = $this->createMock(IRootFolder::class);
|
||||
$node = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock();
|
||||
$trashManager = $this->createMock(ITrashManager::class);
|
||||
$event = $this->getMockBuilder(MoveToTrashEvent::class)->disableOriginalConstructor()->getMock();
|
||||
$event->expects($this->any())->method('shouldMoveToTrashBin')->willReturn(!$appDisablesTrash);
|
||||
|
||||
|
|
@ -555,6 +557,7 @@ class StorageTest extends \Test\TestCase {
|
|||
->setConstructorArgs(
|
||||
[
|
||||
['mountPoint' => $mountPoint, 'storage' => $tmpStorage],
|
||||
$trashManager,
|
||||
$userManager,
|
||||
$logger,
|
||||
$eventDispatcher,
|
||||
|
|
|
|||
Loading…
Reference in a new issue