Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-03-08 17:51:49 +0300
committerHenry Castro <hcastro@collabora.com>2016-03-09 15:50:49 +0300
commit2d2edffa80a3fc39983f9b1b87cf490cce085a15 (patch)
tree870949629e667529cfcef67bddbaef92f81e6715 /tests
parent85f3079b47eb32a91ed46c53cf80d67756bdb10d (diff)
Add initial cache support
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/documentcontrollertest.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/controller/documentcontrollertest.php b/tests/controller/documentcontrollertest.php
index 88a654ac..42cbcf74 100644
--- a/tests/controller/documentcontrollertest.php
+++ b/tests/controller/documentcontrollertest.php
@@ -16,10 +16,11 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase {
private $request;
private $l10n;
private $settings;
+ private $cache;
private $uid = 'jack_the_documents_tester';
private $password = 'password';
private $controller;
-
+
public function setUp(){
$this->request = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()
@@ -33,14 +34,19 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase {
->disableOriginalConstructor()
->getMock()
;
+ $this->cache = $this->getMockBuilder('\OCP\ICacheFactory')
+ ->disableOriginalConstructor()
+ ->getMock()
+ ;
$this->controller = new DocumentController(
$this->appName,
$this->request,
$this->settings,
$this->l10n,
- $this->uid
+ $this->uid,
+ $this->cache
);
-
+
$userManager = \OC::$server->getUserManager();
$userSession = \OC::$server->getUserSession();
if (!$userManager->userExists($this->uid)){