Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-07 00:53:33 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-11-07 12:11:20 +0300
commit3e6e9186d8d93fe86cfed3fab4bfc7b91cdf73ef (patch)
tree4e06b93142f461351d23791897d8e640825f3b05 /tests/lib/Template
parentcd849db8be9bf7712ff216e81c3d134087be0eb1 (diff)
Fix tests to return config default values
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/Template')
-rw-r--r--tests/lib/Template/SCSSCacherTest.php5
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))