diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 15:44:12 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-19 11:03:25 +0200 |
commit | 4375314e2575004c2b591d81f4d6d9573a667350 (patch) | |
tree | fdb0c77b179c1826bc55a917f5b998735b048b7b | |
parent | bf904b37704133fc2fd0a0082c7cd4f0e237fd65 (diff) | |
download | nextcloud-server-4375314e2575004c2b591d81f4d6d9573a667350.tar.gz nextcloud-server-4375314e2575004c2b591d81f4d6d9573a667350.zip |
test: fix trashbin StorageTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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 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) |