diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-28 16:04:45 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-28 16:04:45 +0100 |
commit | 8b73560cac73e7e3f406514abc5a08a87cede0df (patch) | |
tree | 76d097261bc7e85a6c2a5d456e8896e0fde69916 | |
parent | 0b883ab9d940650582e8ee02ada5bf13c2be7915 (diff) | |
download | nextcloud-server-8b73560cac73e7e3f406514abc5a08a87cede0df.tar.gz nextcloud-server-8b73560cac73e7e3f406514abc5a08a87cede0df.zip |
Fix unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/files/tests/Activity/ProviderTest.php | 6 |
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 ); } |