From 14bc9ffda4cdf42b047725b581d6a1129eb70a5b Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 4 Jul 2018 18:50:49 +0200 Subject: Fixed tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- tests/lib/Template/CSSResourceLocatorTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/lib/Template/CSSResourceLocatorTest.php') 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, -- cgit v1.2.3