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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-02-28 18:04:45 +0300
committerJoas Schilling <coding@schilljs.com>2018-03-06 14:16:12 +0300
commitd16aa275160a6eabd21c518c25f5a372f75157a6 (patch)
treeb3263a72b51cd63337006103eb498b1a8a3d44ee /apps
parent8f8d7cf9d36c139ea39572b68ce345d1696c19b6 (diff)
Fix unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/Activity/ProviderTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/tests/Activity/ProviderTest.php b/apps/files/tests/Activity/ProviderTest.php
index 4a835f42d75..f178ff195e4 100644
--- a/apps/files/tests/Activity/ProviderTest.php
+++ b/apps/files/tests/Activity/ProviderTest.php
@@ -28,6 +28,7 @@ use OCA\Files\Activity\Provider;
use OCP\Activity\IEvent;
use OCP\Activity\IEventMerger;
use OCP\Activity\IManager;
+use OCP\Files\IRootFolder;
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserManager;
@@ -49,6 +50,8 @@ class ProviderTest extends TestCase {
protected $activityManager;
/** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
protected $userManager;
+ /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ protected $rootFolder;
/** @var IEventMerger|\PHPUnit_Framework_MockObject_MockObject */
protected $eventMerger;
@@ -59,6 +62,7 @@ class ProviderTest extends TestCase {
$this->url = $this->createMock(IURLGenerator::class);
$this->activityManager = $this->createMock(IManager::class);
$this->userManager = $this->createMock(IUserManager::class);
+ $this->rootFolder = $this->createMock(IRootFolder::class);
$this->eventMerger = $this->createMock(IEventMerger::class);
}
@@ -74,6 +78,7 @@ class ProviderTest extends TestCase {
$this->url,
$this->activityManager,
$this->userManager,
+ $this->rootFolder,
$this->eventMerger,
])
->setMethods($methods)
@@ -84,6 +89,7 @@ class ProviderTest extends TestCase {
$this->url,
$this->activityManager,
$this->userManager,
+ $this->rootFolder,
$this->eventMerger
);
}