From fd0e2f711aef29c22f59566f151581424b79e514 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Fri, 23 Jun 2023 21:20:23 +0330 Subject: [PATCH] Fixes testcase error. Signed-off-by: Faraz Samapoor --- tests/Core/Command/TwoFactorAuth/CleanupTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.39.5