aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-09-10 08:59:51 +0200
committerJulius Härtl <jus@bitgrid.net>2019-09-10 08:59:51 +0200
commit9eb7a318649b3ca2bf85ccdb1db5ecb3be0bde70 (patch)
tree680d2e307a7a2afde2e6a93dc0025cd0a06f7dff /apps/workflowengine/tests
parent72a7fe81854f5a76208e76ebcc127912283f94cd (diff)
downloadnextcloud-server-9eb7a318649b3ca2bf85ccdb1db5ecb3be0bde70.tar.gz
nextcloud-server-9eb7a318649b3ca2bf85ccdb1db5ecb3be0bde70.zip
Fix test mocking
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/tests')
-rw-r--r--apps/workflowengine/tests/ManagerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php
index 3a0cd18a946..14700881a9c 100644
--- a/apps/workflowengine/tests/ManagerTest.php
+++ b/apps/workflowengine/tests/ManagerTest.php
@@ -26,6 +26,7 @@ use OC\L10N\L10N;
use OCA\WorkflowEngine\Entity\File;
use OCA\WorkflowEngine\Helper\ScopeContext;
use OCA\WorkflowEngine\Manager;
+use OCP\Files\IRootFolder;
use OCP\IDBConnection;
use OCP\IL10N;
use OCP\ILogger;
@@ -276,7 +277,7 @@ class ManagerTest extends TestCase {
return $this->createMock(IOperation::class);
} else if($class === File::class) {
return $this->getMockBuilder(File::class)
- ->setConstructorArgs([$this->createMock(L10N::class), $this->createMock(IURLGenerator::class)])
+ ->setConstructorArgs([$this->createMock(L10N::class), $this->createMock(IURLGenerator::class), $this->createMock(IRootFolder::class)])
->setMethodsExcept(['getEvents'])
->getMock();
}