aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-18 15:44:12 +0200
committerLouis <louis@chmn.me>2024-10-08 18:14:26 +0200
commit5b7c43f9d539c9ca94ee2b5ede1cd4bf0a55cd62 (patch)
tree60a1ae7c55c2e5954918922d9c4ec7ecbbda5f73 /apps
parent1df9f6e6914854e240394534f7ef9d4092aba91f (diff)
downloadnextcloud-server-5b7c43f9d539c9ca94ee2b5ede1cd4bf0a55cd62.tar.gz
nextcloud-server-5b7c43f9d539c9ca94ee2b5ede1cd4bf0a55cd62.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 59bd7e0f5ef..d6e911e3dea 100644
--- a/apps/files_trashbin/tests/StorageTest.php
+++ b/apps/files_trashbin/tests/StorageTest.php
@@ -616,6 +616,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)