Skip to content

Commit b875bbe

Browse files
committed
fix: unit test
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent b7149a7 commit b875bbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Unit/Service/SignFileServiceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,14 @@ public function testSignWithSuccess(string $mimetype, string $filename, string $
218218

219219
$this->root->method('getById')->willReturn([$nextcloudFile]);
220220
$this->root->method('newFile')->willReturn($nextcloudFile);
221-
$this->userMountCache->method('getMountsForFileId')->wilLReturn([]);
221+
$this->userMountCache->method('getMountsForFileId')->willReturn([]);
222222

223223
$this->pkcs12Handler->method('setInputFile')->willReturn($this->pkcs12Handler);
224224
$this->pkcs12Handler->method('setCertificate')->willReturn($this->pkcs12Handler);
225225
$this->pkcs12Handler->method('setVisibleElements')->willReturn($this->pkcs12Handler);
226+
$this->pkcs12Handler->method('setSignatureParams')->willReturn($this->pkcs12Handler);
226227
$this->pkcs12Handler->method('setPassword')->willReturn($this->pkcs12Handler);
228+
$this->pkcs12Handler->method('readCertificate')->willReturn(['issuer' => ['CN' => 'Acme Cooperative']]);
227229
$this->pkcs12Handler->method('sign')->willReturn($nextcloudFile);
228230

229231
$this->pkcs7Handler->method('setInputFile')->willReturn($this->pkcs12Handler);

0 commit comments

Comments
 (0)