Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Dec 31, 2024
1 parent 4a63c0d commit d7a582d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/Handler/Pkcs12HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use OCA\Libresign\Service\FolderService;
use OCP\AppFramework\Services\IAppConfig;
use OCP\IL10N;
use OCP\ITempManager;
use PHPUnit\Framework\MockObject\MockObject;

final class Pkcs12HandlerTest extends \OCA\Libresign\Tests\Unit\TestCase {
Expand All @@ -26,6 +27,7 @@ final class Pkcs12HandlerTest extends \OCA\Libresign\Tests\Unit\TestCase {
private IL10N&MockObject $l10n;
private JSignPdfHandler&MockObject $jSignPdfHandler;
private FooterHandler&MockObject $footerHandler;
private ITempManager&MockObject $tempManager;
private CertificateEngineHandler&MockObject $certificateEngineHandler;
private array $cfsslHandlerBuffer = [];

Expand All @@ -40,6 +42,7 @@ public function setUp(): void {
->will($this->returnArgument(0));
$this->jSignPdfHandler = $this->createMock(JSignPdfHandler::class);
$this->footerHandler = $this->createMock(FooterHandler::class);
$this->tempManager = $this->createMock(ITempManager::class);
$this->pkcs12Handler = new Pkcs12Handler(
$this->folderService,
$this->appConfig,
Expand All @@ -48,6 +51,7 @@ public function setUp(): void {
$this->l10n,
$this->jSignPdfHandler,
$this->footerHandler,
$this->tempManager,
);
}

Expand Down

0 comments on commit d7a582d

Please sign in to comment.