From fcdc8b47f23299747873b635b6f95c9f418e6645 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 4 Mar 2024 15:56:52 +0100 Subject: fix(files_versions): Improve files version listing Signed-off-by: Louis Chemineau --- tests/Core/Command/TwoFactorAuth/CleanupTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/Core') diff --git a/tests/Core/Command/TwoFactorAuth/CleanupTest.php b/tests/Core/Command/TwoFactorAuth/CleanupTest.php index 23461ebd784..096f7dee9f8 100644 --- a/tests/Core/Command/TwoFactorAuth/CleanupTest.php +++ b/tests/Core/Command/TwoFactorAuth/CleanupTest.php @@ -27,6 +27,7 @@ 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; @@ -40,6 +41,9 @@ class CleanupTest extends TestCase { /** @var IUserManager|MockObject */ private $userManager; + /** @var VersionsMapper|MockObject */ + private $versionMapper; + /** @var CommandTester */ private $cmd; @@ -48,8 +52,9 @@ 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); + $cmd = new Cleanup($this->registry, $this->userManager, $this->versionMapper); $this->cmd = new CommandTester($cmd); } -- cgit v1.2.3