Skip to content

Commit a8391cb

Browse files
committed
chore: correction of some errors in the AdminTest file
Signed-off-by: Crisciany Souza <criscianysilva1997@gmail.com>
1 parent 22b138e commit a8391cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/php/Unit/Settings/AdminTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use OCA\Libresign\AppInfo\Application;
1212
use OCA\Libresign\Handler\CertificateEngine\CertificateEngineFactory;
13+
use OCA\Libresign\Service\Certificate\RulesService;
1314
use OCA\Libresign\Service\CertificatePolicyService;
1415
use OCA\Libresign\Service\IdentifyMethodService;
1516
use OCA\Libresign\Service\SignatureBackgroundService;
@@ -31,6 +32,8 @@ final class AdminTest extends \OCA\Libresign\Tests\Unit\TestCase {
3132
private IAppConfig&MockObject $appConfig;
3233
private SignatureTextService&MockObject $signatureTextService;
3334
private SignatureBackgroundService&MockObject $signatureBackgroundService;
35+
private RulesService&MockObject $rulesService;
36+
3437
public function setUp(): void {
3538
$this->initialState = $this->createMock(IInitialState::class);
3639
$this->identifyMethodService = $this->createMock(IdentifyMethodService::class);
@@ -39,6 +42,7 @@ public function setUp(): void {
3942
$this->appConfig = $this->createMock(IAppConfig::class);
4043
$this->signatureTextService = $this->createMock(SignatureTextService::class);
4144
$this->signatureBackgroundService = $this->createMock(SignatureBackgroundService::class);
45+
$this->rulesService = $this->createMock(RulesService::class);
4246
$this->admin = new Admin(
4347
$this->initialState,
4448
$this->identifyMethodService,
@@ -47,6 +51,7 @@ public function setUp(): void {
4751
$this->appConfig,
4852
$this->signatureTextService,
4953
$this->signatureBackgroundService,
54+
$this->rulesService,
5055
);
5156
}
5257

0 commit comments

Comments
 (0)