Fix tests to return config default values
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
cd849db8be
commit
3e6e9186d8
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue