summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-22 17:33:43 +0200
committerGitHub <noreply@github.com>2022-09-22 17:33:43 +0200
commit079a8c0e0fc5912bf54d563e107e5b51e8a8b48d (patch)
treed1707b17e0487c8eb8a263cd15df0dee8bd9996a /tests
parent42bc4a0b2a481609f804bcef69ddb21121da97f7 (diff)
parenta5a8f4e9efe58fa945293fb0332d238d8e374fc2 (diff)
downloadnextcloud-server-079a8c0e0fc5912bf54d563e107e5b51e8a8b48d.tar.gz
nextcloud-server-079a8c0e0fc5912bf54d563e107e5b51e8a8b48d.zip
Merge pull request #34192 from nextcloud/move-background-clearing-stable25
[stable25] Move avatar clearing in the background
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Repair/ClearGeneratedAvatarCacheTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/lib/Repair/ClearGeneratedAvatarCacheTest.php b/tests/lib/Repair/ClearGeneratedAvatarCacheTest.php
index de4c6179610..71842547462 100644
--- a/tests/lib/Repair/ClearGeneratedAvatarCacheTest.php
+++ b/tests/lib/Repair/ClearGeneratedAvatarCacheTest.php
@@ -25,6 +25,7 @@ namespace Test\Repair;
use OC\Avatar\AvatarManager;
use OC\Repair\ClearGeneratedAvatarCache;
+use OCP\BackgroundJob\IJobList;
use OCP\IConfig;
use OCP\Migration\IOutput;
@@ -39,8 +40,10 @@ class ClearGeneratedAvatarCacheTest extends \Test\TestCase {
/** @var IConfig */
private $config;
- /** @var ClearGeneratedAvatarCache */
- protected $repair;
+ /** @var IJobList */
+ private $jobList;
+
+ protected ClearGeneratedAvatarCache $repair;
protected function setUp(): void {
parent::setUp();
@@ -48,8 +51,9 @@ class ClearGeneratedAvatarCacheTest extends \Test\TestCase {
$this->outputMock = $this->createMock(IOutput::class);
$this->avatarManager = $this->createMock(AvatarManager::class);
$this->config = $this->createMock(IConfig::class);
+ $this->jobList = $this->createMock(IJobList::class);
- $this->repair = new ClearGeneratedAvatarCache($this->config, $this->avatarManager);
+ $this->repair = new ClearGeneratedAvatarCache($this->config, $this->avatarManager, $this->jobList);
}
public function shouldRunDataProvider() {