diff options
author | Faraz Samapoor <fsa@adlas.at> | 2023-06-23 21:20:23 +0330 |
---|---|---|
committer | Louis <6653109+artonge@users.noreply.github.com> | 2023-06-24 23:14:23 +0200 |
commit | fd0e2f711aef29c22f59566f151581424b79e514 (patch) | |
tree | b5c0826d809e317e8d4282b7a24bc09f87c88cbf /tests | |
parent | faaa8cc4e12d8731e53530538ac84247dd03def1 (diff) | |
download | nextcloud-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.php | 7 |
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); } |