aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Core/Command/TwoFactorAuth/CleanupTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Core/Command/TwoFactorAuth/CleanupTest.php b/tests/Core/Command/TwoFactorAuth/CleanupTest.php
index b23e9c9b4c4..23461ebd784 100644
--- a/tests/Core/Command/TwoFactorAuth/CleanupTest.php
+++ b/tests/Core/Command/TwoFactorAuth/CleanupTest.php
@@ -28,6 +28,7 @@ namespace Core\Command\TwoFactorAuth;
use OC\Core\Command\TwoFactorAuth\Cleanup;
use OCP\Authentication\TwoFactorAuth\IRegistry;
+use OCP\IUserManager;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Console\Tester\CommandTester;
use Test\TestCase;
@@ -36,6 +37,9 @@ class CleanupTest extends TestCase {
/** @var IRegistry|MockObject */
private $registry;
+ /** @var IUserManager|MockObject */
+ private $userManager;
+
/** @var CommandTester */
private $cmd;
@@ -43,8 +47,9 @@ class CleanupTest extends TestCase {
parent::setUp();
$this->registry = $this->createMock(IRegistry::class);
+ $this->userManager = $this->createMock(IUserManager::class);
- $cmd = new Cleanup($this->registry);
+ $cmd = new Cleanup($this->registry, $this->userManager);
$this->cmd = new CommandTester($cmd);
}