summaryrefslogtreecommitdiffstats
path: root/tests/lib/Template/CSSResourceLocatorTest.php
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 /tests/lib/Template/CSSResourceLocatorTest.php
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 'tests/lib/Template/CSSResourceLocatorTest.php')
-rw-r--r--tests/lib/Template/CSSResourceLocatorTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Template/CSSResourceLocatorTest.php b/tests/lib/Template/CSSResourceLocatorTest.php
index ef3ef4f42c8..5e2c3705efa 100644
--- a/tests/lib/Template/CSSResourceLocatorTest.php
+++ b/tests/lib/Template/CSSResourceLocatorTest.php
@@ -25,11 +25,11 @@ namespace Test\Template;
use OC\Files\AppData\Factory;
use OCP\Files\IAppData;
+use OCP\ICacheFactory;
use OCP\ILogger;
use OCP\IURLGenerator;
use OCP\IConfig;
use OCA\Theming\ThemingDefaults;
-use OCP\ICache;
use OC\Template\SCSSCacher;
use OC\Template\CSSResourceLocator;
@@ -42,8 +42,8 @@ class CSSResourceLocatorTest extends \Test\TestCase {
protected $config;
/** @var ThemingDefaults|\PHPUnit_Framework_MockObject_MockObject */
protected $themingDefaults;
- /** @var ICache|\PHPUnit_Framework_MockObject_MockObject */
- protected $depsCache;
+ /** @var ICacheFactory|\PHPUnit_Framework_MockObject_MockObject */
+ protected $cacheFactory;
/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
protected $logger;
@@ -54,7 +54,7 @@ class CSSResourceLocatorTest extends \Test\TestCase {
$this->appData = $this->createMock(IAppData::class);
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->config = $this->createMock(IConfig::class);
- $this->depsCache = $this->createMock(ICache::class);
+ $this->cacheFactory = $this->createMock(ICacheFactory::class);
$this->themingDefaults = $this->createMock(ThemingDefaults::class);
}
@@ -69,7 +69,7 @@ class CSSResourceLocatorTest extends \Test\TestCase {
$this->config,
$this->themingDefaults,
\OC::$SERVERROOT,
- $this->depsCache
+ $this->cacheFactory
);
return new CSSResourceLocator(
$this->logger,