aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFaraz Samapoor <fsa@adlas.at>2023-06-23 21:20:23 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-24 23:14:23 +0200
commitfd0e2f711aef29c22f59566f151581424b79e514 (patch)
treeb5c0826d809e317e8d4282b7a24bc09f87c88cbf /tests
parentfaaa8cc4e12d8731e53530538ac84247dd03def1 (diff)
downloadnextcloud-server-fd0e2f711aef29c22f59566f151581424b79e514.tar.gz
nextcloud-server-fd0e2f711aef29c22f59566f151581424b79e514.zip
Fixes testcase error.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'tests')
-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);
}