Fix tests to return config default values

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-11-06 22:53:33 +01:00 committed by John Molakvoæ (skjnldsv)
parent cd849db8be
commit 3e6e9186d8
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,11 @@ class SCSSCacherTest extends \Test\TestCase {
->willReturn('http://localhost/nextcloud');
$this->config = $this->createMock(IConfig::class);
$this->config->expects($this->any())
->method('getAppValue')
->will($this->returnCallback(function ($appId, $configKey, $defaultValue) {
return $defaultValue;
}));
$this->cacheFactory = $this->createMock(ICacheFactory::class);
$this->depsCache = $this->createMock(ICache::class);
$this->cacheFactory->expects($this->at(0))