Skip to content

Commit 1f5449f

Browse files
Merge pull request #8368 from nextcloud/fix/noid/user-folder-mock
fix(tests): mock IUserFolder where getUserFolder is stubbed
2 parents c5d595a + a50fc7e commit 1f5449f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/Service/FilesAppServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testCreateWithValidFilename() {
9898
->method('validateFilename')
9999
->with('valid-file.txt');
100100

101-
$userFolder = $this->createMock(\OCP\Files\Folder::class);
101+
$userFolder = $this->createMock(\OCP\Files\IUserFolder::class);
102102
$this->rootFolder->expects($this->any())
103103
->method('getUserFolder')
104104
->willReturn($userFolder);

0 commit comments

Comments
 (0)