File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
apps/encryption/tests/Crypto Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3636use OCP \IConfig ;
3737use OCP \IL10N ;
3838use OCP \IUserManager ;
39+ use OCP \L10N \IFactory ;
3940use OCP \Mail \IMailer ;
4041use OCP \Security \ISecureRandom ;
4142use 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 ]
You can’t perform that action at this time.
0 commit comments