aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-03-06 16:46:35 +0100
committerLouis Chemineau <louis@chmn.me>2024-03-06 16:46:35 +0100
commit72f7b80153bc103270502c0e6e43a09f573e6747 (patch)
tree799406688849296422770530503b5596b30a121a /tests/Core
parent75c489cc4b96e927f0ce0c3724e47141d6f104ee (diff)
downloadnextcloud-server-72f7b80153bc103270502c0e6e43a09f573e6747.tar.gz
nextcloud-server-72f7b80153bc103270502c0e6e43a09f573e6747.zip
Revert change in TwoFactorAuth CleanupTest.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Command/TwoFactorAuth/CleanupTest.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/Core/Command/TwoFactorAuth/CleanupTest.php b/tests/Core/Command/TwoFactorAuth/CleanupTest.php
index 096f7dee9f8..23461ebd784 100644
--- a/tests/Core/Command/TwoFactorAuth/CleanupTest.php
+++ b/tests/Core/Command/TwoFactorAuth/CleanupTest.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace Core\Command\TwoFactorAuth;
use OC\Core\Command\TwoFactorAuth\Cleanup;
-use OCA\Files_Versions\Db\VersionsMapper;
use OCP\Authentication\TwoFactorAuth\IRegistry;
use OCP\IUserManager;
use PHPUnit\Framework\MockObject\MockObject;
@@ -41,9 +40,6 @@ class CleanupTest extends TestCase {
/** @var IUserManager|MockObject */
private $userManager;
- /** @var VersionsMapper|MockObject */
- private $versionMapper;
-
/** @var CommandTester */
private $cmd;
@@ -52,9 +48,8 @@ class CleanupTest extends TestCase {
$this->registry = $this->createMock(IRegistry::class);
$this->userManager = $this->createMock(IUserManager::class);
- $this->versionMapper = $this->createMock(VersionsMapper::class);
- $cmd = new Cleanup($this->registry, $this->userManager, $this->versionMapper);
+ $cmd = new Cleanup($this->registry, $this->userManager);
$this->cmd = new CommandTester($cmd);
}