summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-03-07 14:51:43 +0100
committerJulius Härtl <jus@bitgrid.net>2018-03-07 15:09:43 +0100
commit95366bbd1fe5fc93d767721233b2a38a455e6f6c (patch)
treef3455e9074191c7dd50e8da82dec53d6c709393a /apps
parent63e261b4446996d9ba42f09b1c1b17c98f34390f (diff)
downloadnextcloud-server-95366bbd1fe5fc93d767721233b2a38a455e6f6c.tar.gz
nextcloud-server-95366bbd1fe5fc93d767721233b2a38a455e6f6c.zip
Fix tests to use ICacheFactory
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/ThemingDefaults.php4
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index 79995f52efb..986de4b1e86 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -298,7 +298,7 @@ class ThemingDefaults extends \OC_Defaults {
* @return bool
*/
public function shouldReplaceIcons() {
- $cache = $this->cacheFactory->createDistributed('theming');
+ $cache = $this->cacheFactory->createDistributed('theming-');
if($value = $cache->get('shouldReplaceIcons')) {
return (bool)$value;
}
@@ -320,7 +320,7 @@ class ThemingDefaults extends \OC_Defaults {
private function increaseCacheBuster() {
$cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0');
$this->config->setAppValue('theming', 'cachebuster', (int)$cacheBusterKey+1);
- $this->cacheFactory->createDistributed('theming')->clear('getScssVariables');
+ $this->cacheFactory->createDistributed('theming-')->clear('getScssVariables');
}
/**
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index 36fe9d17b7c..2e1ad44b7aa 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -79,7 +79,7 @@ class ThemingDefaultsTest extends TestCase {
$this->cacheFactory
->expects($this->any())
->method('createDistributed')
- ->with('theming')
+ ->with('theming-')
->willReturn($this->cache);
$this->template = new ThemingDefaults(
$this->config,