diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 15:44:12 +0200 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-10-08 18:14:26 +0200 |
commit | 5b7c43f9d539c9ca94ee2b5ede1cd4bf0a55cd62 (patch) | |
tree | 60a1ae7c55c2e5954918922d9c4ec7ecbbda5f73 /apps | |
parent | 1df9f6e6914854e240394534f7ef9d4092aba91f (diff) | |
download | nextcloud-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.php | 1 |
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) |