Skip to content

Commit 5e11413

Browse files
committed
fix: use real FileUploadHelper instance in tests instead of mock
- Changed property type from FileUploadHelper&MockObject to FileUploadHelper - Use \OCP\Server::get(FileUploadHelper::class) to get real instance - Fixes 'File is too big' test that requires actual validation logic - All 105 FileServiceTest tests now passing Signed-off-by: Vitor Mattos <[email protected]>
1 parent a16c8ff commit 5e11413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/php/Unit/Service/FileServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ final class FileServiceTest extends \OCA\Libresign\Tests\Unit\TestCase {
8282
protected IL10N $l10n;
8383
protected EnvelopeService $envelopeService;
8484
protected vfsDirectory $tempFolder;
85-
protected FileUploadHelper&MockObject $uploadHelper;
85+
protected FileUploadHelper $uploadHelper;
8686

8787
public function setUp(): void {
8888
// Disable lazy objects to avoid PHP 8.4 dependency injection issues in tests

0 commit comments

Comments
 (0)