aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-18 15:44:12 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-19 13:59:08 +0200
commitd2d475a7490c13c499eca04b970afc0d7d43ec8d (patch)
treecc9436a9282c615d06d0e9e7f468120b0da21b04 /apps
parentbf480bbde9a0c184fab9dfbae407a648311d562f (diff)
downloadnextcloud-server-d2d475a7490c13c499eca04b970afc0d7d43ec8d.tar.gz
nextcloud-server-d2d475a7490c13c499eca04b970afc0d7d43ec8d.zip
test: fix trashbin StorageTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/tests/StorageTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php
index 18fe59f7f7d..70a40d10d3f 100644
--- a/apps/files_trashbin/tests/StorageTest.php
+++ b/apps/files_trashbin/tests/StorageTest.php
@@ -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)