From 9eb7a318649b3ca2bf85ccdb1db5ecb3be0bde70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 10 Sep 2019 08:59:51 +0200 Subject: [PATCH] Fix test mocking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/tests/ManagerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }