diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-04 15:56:52 +0100 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-03-06 10:15:31 +0100 |
commit | fcdc8b47f23299747873b635b6f95c9f418e6645 (patch) | |
tree | 01a5689a47178b028fc452bfdf9eeea9b6049b4a /tests/Core | |
parent | 14ef17e5e21017b36ff106eb9202a0cd54771199 (diff) | |
download | nextcloud-server-fcdc8b47f23299747873b635b6f95c9f418e6645.tar.gz nextcloud-server-fcdc8b47f23299747873b635b6f95c9f418e6645.zip |
fix(files_versions): Improve files version listing
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'tests/Core')
-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 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); } |