瀏覽代碼

Fix tests to return config default values

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v21.0.0beta1
Morris Jobke 3 年之前
父節點
當前提交
3e6e9186d8
No account linked to committer's email address
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      tests/lib/Template/SCSSCacherTest.php

+ 5
- 0
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…
取消
儲存