summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-06 10:54:37 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-13 14:23:39 +0100
commit2efe8aad38b83e0ec7f21b836f4e503045990213 (patch)
tree8ee6f6ea0f802687e27c7c5797154369206c109f /apps/workflowengine/tests
parentd9204f61ead5f5c95cbef21a5d6fc40ac2d1861a (diff)
downloadnextcloud-server-2efe8aad38b83e0ec7f21b836f4e503045990213.tar.gz
nextcloud-server-2efe8aad38b83e0ec7f21b836f4e503045990213.zip
relax dependency on GenericEvent, instead stay compatible with old events
* also fixes tagging events Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/tests')
-rw-r--r--apps/workflowengine/tests/ManagerTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php
index aac5e5eadf5..92111a6989b 100644
--- a/apps/workflowengine/tests/ManagerTest.php
+++ b/apps/workflowengine/tests/ManagerTest.php
@@ -279,7 +279,12 @@ class ManagerTest extends TestCase {
return $this->createMock(IOperation::class);
} else if($class === File::class) {
return $this->getMockBuilder(File::class)
- ->setConstructorArgs([$this->l, $this->createMock(IURLGenerator::class), $this->createMock(IRootFolder::class)])
+ ->setConstructorArgs([
+ $this->l,
+ $this->createMock(IURLGenerator::class),
+ $this->createMock(IRootFolder::class),
+ $this->createMock(ILogger::class)
+ ])
->setMethodsExcept(['getEvents'])
->getMock();
}