Fix tests to return config default values

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/23934/head
Morris Jobke 6 years ago committed by John Molakvoæ (skjnldsv)
parent cd849db8be
commit 3e6e9186d8
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 5
      tests/lib/Template/SCSSCacherTest.php

@ -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…
Cancel
Save