Skip to content

Commit 68bd04e

Browse files
nickvergessenkesselb
authored andcommitted
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 77697ff commit 68bd04e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/encryption/tests/Crypto/EncryptAllTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use OCP\IConfig;
3737
use OCP\IL10N;
3838
use OCP\IUserManager;
39+
use OCP\L10N\IFactory;
3940
use OCP\Mail\IMailer;
4041
use OCP\Security\ISecureRandom;
4142
use OCP\UserInterface;
@@ -106,6 +107,7 @@ protected function setUp(): void {
106107
->disableOriginalConstructor()->getMock();
107108
$this->mailer = $this->getMockBuilder(IMailer::class)
108109
->disableOriginalConstructor()->getMock();
110+
$this->l10nFactory = $this->createMock(IFactory::class);
109111
$this->l = $this->getMockBuilder(IL10N::class)
110112
->disableOriginalConstructor()->getMock();
111113
$this->questionHelper = $this->getMockBuilder(QuestionHelper::class)
@@ -140,6 +142,7 @@ protected function setUp(): void {
140142
$this->config,
141143
$this->mailer,
142144
$this->l,
145+
$this->l10nFactory,
143146
$this->questionHelper,
144147
$this->secureRandom
145148
);
@@ -158,6 +161,7 @@ public function testEncryptAll() {
158161
$this->config,
159162
$this->mailer,
160163
$this->l,
164+
$this->l10nFactory,
161165
$this->questionHelper,
162166
$this->secureRandom
163167
]
@@ -186,6 +190,7 @@ public function testEncryptAllWithMasterKey() {
186190
$this->config,
187191
$this->mailer,
188192
$this->l,
193+
$this->l10nFactory,
189194
$this->questionHelper,
190195
$this->secureRandom
191196
]
@@ -215,6 +220,7 @@ public function testCreateKeyPairs() {
215220
$this->config,
216221
$this->mailer,
217222
$this->l,
223+
$this->l10nFactory,
218224
$this->questionHelper,
219225
$this->secureRandom
220226
]
@@ -264,6 +270,7 @@ public function testEncryptAllUsersFiles() {
264270
$this->config,
265271
$this->mailer,
266272
$this->l,
273+
$this->l10nFactory,
267274
$this->questionHelper,
268275
$this->secureRandom
269276
]
@@ -299,6 +306,7 @@ public function testEncryptUsersFiles() {
299306
$this->config,
300307
$this->mailer,
301308
$this->l,
309+
$this->l10nFactory,
302310
$this->questionHelper,
303311
$this->secureRandom
304312
]

0 commit comments

Comments
 (0)