mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0f7146c652
commit
f60e1f751d
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue