diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-06 22:53:33 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-11-07 10:11:20 +0100 |
commit | 3e6e9186d8d93fe86cfed3fab4bfc7b91cdf73ef (patch) | |
tree | 4e06b93142f461351d23791897d8e640825f3b05 /tests | |
parent | cd849db8be9bf7712ff216e81c3d134087be0eb1 (diff) | |
download | nextcloud-server-3e6e9186d8d93fe86cfed3fab4bfc7b91cdf73ef.tar.gz nextcloud-server-3e6e9186d8d93fe86cfed3fab4bfc7b91cdf73ef.zip |
Fix tests to return config default values
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Template/SCSSCacherTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php index 77a9bdde764..4295c800d02 100644 --- a/tests/lib/Template/SCSSCacherTest.php +++ b/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)) |