diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-12 13:00:56 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-12-08 01:30:28 +0300 |
commit | 72ab9edb8d58575eef864bd578f00a44ecb73851 (patch) | |
tree | bcc244e6c7abfe6ef315fa008d46bac2d97488f6 /tests | |
parent | 76a46191c8662c6d773984736d48d7748a1afe10 (diff) |
Make sure to always load the latest icons-vars.css file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Template/IconsCacherTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Template/IconsCacherTest.php b/tests/lib/Template/IconsCacherTest.php index d6a9908989c..27d35699d63 100644 --- a/tests/lib/Template/IconsCacherTest.php +++ b/tests/lib/Template/IconsCacherTest.php @@ -28,6 +28,7 @@ use OC\Files\AppData\AppData; use OC\Files\AppData\Factory; use OC\Template\IconsCacher; use OCA\Theming\ThemingDefaults; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\Files\IAppData; use OCP\Files\NotFoundException; use OCP\Files\SimpleFS\ISimpleFile; @@ -46,10 +47,13 @@ class IconsCacherTest extends \Test\TestCase { protected $appData; /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */ protected $urlGenerator; + /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */ + private $timeFactory; protected function setUp() { $this->logger = $this->createMock(ILogger::class); $this->appData = $this->createMock(AppData::class); + $this->timeFactory = $this->createMock(ITimeFactory::class); /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */ $factory = $this->createMock(Factory::class); @@ -63,7 +67,8 @@ class IconsCacherTest extends \Test\TestCase { $this->iconsCacher = new IconsCacher( $this->logger, $factory, - $this->urlGenerator + $this->urlGenerator, + $this->timeFactory ); } |