Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen authored and kesselb committed Jul 10, 2023
1 parent 77697ff commit 68bd04e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/encryption/tests/Crypto/EncryptAllTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use OCP\IConfig;
use OCP\IL10N;
use OCP\IUserManager;
use OCP\L10N\IFactory;
use OCP\Mail\IMailer;
use OCP\Security\ISecureRandom;
use OCP\UserInterface;
Expand Down Expand Up @@ -106,6 +107,7 @@ protected function setUp(): void {
->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)
Expand Down Expand Up @@ -140,6 +142,7 @@ protected function setUp(): void {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
);
Expand All @@ -158,6 +161,7 @@ public function testEncryptAll() {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
]
Expand Down Expand Up @@ -186,6 +190,7 @@ public function testEncryptAllWithMasterKey() {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
]
Expand Down Expand Up @@ -215,6 +220,7 @@ public function testCreateKeyPairs() {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
]
Expand Down Expand Up @@ -264,6 +270,7 @@ public function testEncryptAllUsersFiles() {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
]
Expand Down Expand Up @@ -299,6 +306,7 @@ public function testEncryptUsersFiles() {
$this->config,
$this->mailer,
$this->l,
$this->l10nFactory,
$this->questionHelper,
$this->secureRandom
]
Expand Down

0 comments on commit 68bd04e

Please sign in to comment.