Skip to content

Commit 779ba5d

Browse files
committed
chore: Fix tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 52b7207 commit 779ba5d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dav/tests/unit/Controller/DirectControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testGetUrlNoLinkShares(): void {
156156
$this->shareManager->method('shareApiAllowLinks')
157157
->willReturn(false);
158158

159-
$userFolder = $this->createMock(Folder::class);
159+
$userFolder = $this->createMock(IUserFolder::class);
160160
$this->rootFolder->method('getUserFolder')
161161
->with('awesomeUser')
162162
->willReturn($userFolder);

apps/files_trashbin/tests/Sabre/TrashbinPluginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
use OCA\Files_Trashbin\Sabre\RestoreFolder;
1414
use OCA\Files_Trashbin\Sabre\TrashbinPlugin;
1515
use OCA\Files_Trashbin\Trash\ITrashItem;
16-
use OCP\Files\Folder;
1716
use OCP\Files\IRootFolder;
17+
use OCP\Files\IUserFolder;
1818
use OCP\Files\Mount\IMountManager;
1919
use OCP\Files\Mount\IMountPoint;
2020
use OCP\Files\Storage\IStorage;
@@ -58,7 +58,7 @@ public function testQuota(int $quota, int $fileSize, bool $expectedResult): void
5858

5959
$previewManager = $this->createMock(IPreview::class);
6060

61-
$userFolder = $this->createMock(Folder::class);
61+
$userFolder = $this->createMock(IUserFolder::class);
6262
$userFolder->method('getFullPath')
6363
->with('relative/original') // the parent path
6464
->willReturn('/full/path/to/original');

0 commit comments

Comments
 (0)