aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ApiControllerTest.php
diff options
context:
space:
mode:
authorWilliam Bargent <personal@williambargent.co.uk>2016-07-25 15:25:02 +0100
committerGitHub <noreply@github.com>2016-07-25 15:25:02 +0100
commit352e24e703aae74c9486810e8c3550ae581c93cb (patch)
tree144f60ca01ed26ef1ea52cb66637b1220bfbe003 /apps/files/tests/Controller/ApiControllerTest.php
parente51afa1684a0d555082e3115a75dc357a14a9cca (diff)
parentf18338d93284f475d7f78dc2762ff0fdc8137dea (diff)
downloadnextcloud-server-352e24e703aae74c9486810e8c3550ae581c93cb.tar.gz
nextcloud-server-352e24e703aae74c9486810e8c3550ae581c93cb.zip
Merge pull request #292 from nextcloud/recent-files
Add "Recent" file listing
Diffstat (limited to 'apps/files/tests/Controller/ApiControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ApiControllerTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php
index 1d39c88021b..348150e0e08 100644
--- a/apps/files/tests/Controller/ApiControllerTest.php
+++ b/apps/files/tests/Controller/ApiControllerTest.php
@@ -59,6 +59,8 @@ class ApiControllerTest extends TestCase {
private $shareManager;
/** @var \OCP\IConfig */
private $config;
+ /** @var \OC\Files\Node\Folder */
+ private $userFolder;
public function setUp() {
$this->request = $this->getMockBuilder('\OCP\IRequest')
@@ -82,6 +84,9 @@ class ApiControllerTest extends TestCase {
->disableOriginalConstructor()
->getMock();
$this->config = $this->getMock('\OCP\IConfig');
+ $this->userFolder = $this->getMockBuilder('\OC\Files\Node\Folder')
+ ->disableOriginalConstructor()
+ ->getMock();
$this->apiController = new ApiController(
$this->appName,
@@ -90,7 +95,8 @@ class ApiControllerTest extends TestCase {
$this->tagService,
$this->preview,
$this->shareManager,
- $this->config
+ $this->config,
+ $this->userFolder
);
}