summaryrefslogtreecommitdiffstats
path: root/tests/lib/Template/CSSResourceLocatorTest.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-04 18:50:49 +0200
committerJulius Härtl <jus@bitgrid.net>2018-07-19 08:16:59 +0200
commit14bc9ffda4cdf42b047725b581d6a1129eb70a5b (patch)
treedb66da19c289ccfcdb3d057403ec0ce3cec6a57a /tests/lib/Template/CSSResourceLocatorTest.php
parent59db5250f9b31aced92b88dcfe1024b8a6303d50 (diff)
downloadnextcloud-server-14bc9ffda4cdf42b047725b581d6a1129eb70a5b.tar.gz
nextcloud-server-14bc9ffda4cdf42b047725b581d6a1129eb70a5b.zip
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests/lib/Template/CSSResourceLocatorTest.php')
-rw-r--r--tests/lib/Template/CSSResourceLocatorTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Template/CSSResourceLocatorTest.php b/tests/lib/Template/CSSResourceLocatorTest.php
index a8b123b8d5b..3fb7972b211 100644
--- a/tests/lib/Template/CSSResourceLocatorTest.php
+++ b/tests/lib/Template/CSSResourceLocatorTest.php
@@ -31,6 +31,7 @@ use OCP\ILogger;
use OCP\IURLGenerator;
use OCP\IConfig;
use OCA\Theming\ThemingDefaults;
+use OC\Template\IconsCacher;
use OC\Template\SCSSCacher;
use OC\Template\CSSResourceLocator;
@@ -47,6 +48,8 @@ class CSSResourceLocatorTest extends \Test\TestCase {
protected $cacheFactory;
/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
protected $logger;
+ /** @var IconsCacher|\PHPUnit_Framework_MockObject_MockObject */
+ protected $iconsCacher;
protected function setUp() {
parent::setUp();
@@ -57,6 +60,7 @@ class CSSResourceLocatorTest extends \Test\TestCase {
$this->config = $this->createMock(IConfig::class);
$this->cacheFactory = $this->createMock(ICacheFactory::class);
$this->themingDefaults = $this->createMock(ThemingDefaults::class);
+ $this->iconsCacher = $this->createMock(IconsCacher::class);
}
private function cssResourceLocator() {
@@ -70,7 +74,8 @@ class CSSResourceLocatorTest extends \Test\TestCase {
$this->config,
$this->themingDefaults,
\OC::$SERVERROOT,
- $this->cacheFactory
+ $this->cacheFactory,
+ $this->iconsCacher
);
return new CSSResourceLocator(
$this->logger,