]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixes testcase error. 38775/head
authorFaraz Samapoor <fsa@adlas.at>
Fri, 23 Jun 2023 17:50:23 +0000 (21:20 +0330)
committerLouis <6653109+artonge@users.noreply.github.com>
Sat, 24 Jun 2023 21:14:23 +0000 (23:14 +0200)
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
tests/Core/Command/TwoFactorAuth/CleanupTest.php

index b23e9c9b4c481128583a054a6b1f058b1405a04e..23461ebd78421459f441e8285d023570587091b0 100644 (file)
@@ -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);
        }