test: fix trashbin StorageTest

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/48160/head
Robin Appelman 2024-09-18 15:44:12 +07:00
parent 7661a7e90a
commit d8ed84653b
1 changed files with 1 additions and 0 deletions

@ -591,6 +591,7 @@ class StorageTest extends \Test\TestCase {
$event->expects($this->any())->method('shouldMoveToTrashBin')->willReturn(!$appDisablesTrash);
$userFolder->expects($this->any())->method('getById')->with($fileID)->willReturn([$node]);
$rootFolder->expects($this->any())->method('getById')->with($fileID)->willReturn([$node]);
$rootFolder->expects($this->any())->method('getUserFolder')->willReturn($userFolder);
$storage = $this->getMockBuilder(Storage::class)