aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-18 15:44:12 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-18 16:10:14 +0200
commitd8ed84653b3d85ded43b2609ce85f67dbdc03f39 (patch)
treebcb02dedfd3cf833df6eec4c61f7233d45a2a5f1
parent7661a7e90a19e993ca7bbf7a40c8faf8accc209a (diff)
downloadnextcloud-server-d8ed84653b3d85ded43b2609ce85f67dbdc03f39.tar.gz
nextcloud-server-d8ed84653b3d85ded43b2609ce85f67dbdc03f39.zip
test: fix trashbin StorageTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 37dfe84fc60..f0f3159b32a 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)