diff options
author | Joas Schilling <coding@schilljs.com> | 2023-03-08 20:47:46 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-03-08 20:47:46 +0100 |
commit | f60e1f751d5362d9652c253b8c01a5d058e49101 (patch) | |
tree | ae037a7335f89037fc225729d6ed806e722b195c /apps/encryption | |
parent | 0f7146c65257915b8a831649ff51382e2424d99b (diff) | |
download | nextcloud-server-f60e1f751d5362d9652c253b8c01a5d058e49101.tar.gz nextcloud-server-f60e1f751d5362d9652c253b8c01a5d058e49101.zip |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/tests/Crypto/EncryptAllTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php index 126dbec680e..b99e9144be8 100644 --- a/apps/encryption/tests/Crypto/EncryptAllTest.php +++ b/apps/encryption/tests/Crypto/EncryptAllTest.php @@ -36,6 +36,7 @@ use OCP\Files\FileInfo; use OCP\IConfig; use OCP\IL10N; use OCP\IUserManager; +use OCP\L10N\IFactory; use OCP\Mail\IMailer; use OCP\Security\ISecureRandom; use OCP\UserInterface; @@ -106,6 +107,7 @@ class EncryptAllTest extends TestCase { ->disableOriginalConstructor()->getMock(); $this->mailer = $this->getMockBuilder(IMailer::class) ->disableOriginalConstructor()->getMock(); + $this->l10nFactory = $this->createMock(IFactory::class); $this->l = $this->getMockBuilder(IL10N::class) ->disableOriginalConstructor()->getMock(); $this->questionHelper = $this->getMockBuilder(QuestionHelper::class) @@ -140,6 +142,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ); @@ -158,6 +161,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ] @@ -186,6 +190,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ] @@ -215,6 +220,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ] @@ -264,6 +270,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ] @@ -299,6 +306,7 @@ class EncryptAllTest extends TestCase { $this->config, $this->mailer, $this->l, + $this->l10nFactory, $this->questionHelper, $this->secureRandom ] |