10
10
11
11
use OCA \Libresign \AppInfo \Application ;
12
12
use OCA \Libresign \Handler \CertificateEngine \CertificateEngineFactory ;
13
+ use OCA \Libresign \Service \Certificate \RulesService ;
13
14
use OCA \Libresign \Service \CertificatePolicyService ;
14
15
use OCA \Libresign \Service \IdentifyMethodService ;
15
16
use OCA \Libresign \Service \SignatureBackgroundService ;
@@ -31,6 +32,8 @@ final class AdminTest extends \OCA\Libresign\Tests\Unit\TestCase {
31
32
private IAppConfig &MockObject $ appConfig ;
32
33
private SignatureTextService &MockObject $ signatureTextService ;
33
34
private SignatureBackgroundService &MockObject $ signatureBackgroundService ;
35
+ private RulesService &MockObject $ rulesService ;
36
+
34
37
public function setUp (): void {
35
38
$ this ->initialState = $ this ->createMock (IInitialState::class);
36
39
$ this ->identifyMethodService = $ this ->createMock (IdentifyMethodService::class);
@@ -39,6 +42,7 @@ public function setUp(): void {
39
42
$ this ->appConfig = $ this ->createMock (IAppConfig::class);
40
43
$ this ->signatureTextService = $ this ->createMock (SignatureTextService::class);
41
44
$ this ->signatureBackgroundService = $ this ->createMock (SignatureBackgroundService::class);
45
+ $ this ->rulesService = $ this ->createMock (RulesService::class);
42
46
$ this ->admin = new Admin (
43
47
$ this ->initialState ,
44
48
$ this ->identifyMethodService ,
@@ -47,6 +51,7 @@ public function setUp(): void {
47
51
$ this ->appConfig ,
48
52
$ this ->signatureTextService ,
49
53
$ this ->signatureBackgroundService ,
54
+ $ this ->rulesService ,
50
55
);
51
56
}
52
57
0 commit comments