summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-27 21:38:41 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-27 21:38:41 +0200
commit683f0e7f775d6cb0461146ed7b6327de36642e25 (patch)
tree46afd3da94abdb95ae984261da8696a416b834c1 /apps/theming/tests
parent73bc108451169aa8ba95eba3749c6450de2ded2e (diff)
downloadnextcloud-server-683f0e7f775d6cb0461146ed7b6327de36642e25.tar.gz
nextcloud-server-683f0e7f775d6cb0461146ed7b6327de36642e25.zip
Use temporary file as cache
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index 6171b30215e..d053d8c1a1c 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -32,6 +32,7 @@ use OCP\Files\IRootFolder;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IRequest;
+use OCP\ITempManager;
use Test\TestCase;
use OCA\Theming\ThemingDefaults;
@@ -52,6 +53,8 @@ class ThemingControllerTest extends TestCase {
private $themingController;
/** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
private $rootFolder;
+ /** @var ITempManager */
+ private $tempManager;
public function setUp() {
$this->request = $this->getMockBuilder('OCP\IRequest')->getMock();
@@ -64,10 +67,10 @@ class ThemingControllerTest extends TestCase {
->getMock();
$this->l10n = $this->getMockBuilder('OCP\IL10N')->getMock();
$this->rootFolder = $this->getMockBuilder('OCP\Files\IRootFolder')->getMock();
-
$this->timeFactory->expects($this->any())
->method('getTime')
->willReturn(123);
+ $this->tempManager = \OC::$server->getTempManager();
$this->themingController = new ThemingController(
'theming',
@@ -77,7 +80,8 @@ class ThemingControllerTest extends TestCase {
$this->util,
$this->timeFactory,
$this->l10n,
- $this->rootFolder
+ $this->rootFolder,
+ $this->tempManager
);
return parent::setUp();