Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert change in TwoFactorAuth CleanupTest.php
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Mar 6, 2024
commit 72f7b80153bc103270502c0e6e43a09f573e6747
7 changes: 1 addition & 6 deletions tests/Core/Command/TwoFactorAuth/CleanupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
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;
Expand All @@ -41,9 +40,6 @@ class CleanupTest extends TestCase {
/** @var IUserManager|MockObject */
private $userManager;

/** @var VersionsMapper|MockObject */
private $versionMapper;

/** @var CommandTester */
private $cmd;

Expand All @@ -52,9 +48,8 @@ protected function setUp(): void {

$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);
}

Expand Down