diff options
Diffstat (limited to 'apps/workflowengine/tests/ManagerTest.php')
-rw-r--r-- | apps/workflowengine/tests/ManagerTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php index 22d323a9436..28001a05a92 100644 --- a/apps/workflowengine/tests/ManagerTest.php +++ b/apps/workflowengine/tests/ManagerTest.php @@ -28,6 +28,7 @@ use OCA\WorkflowEngine\Helper\ScopeContext; use OCA\WorkflowEngine\Manager; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\IRootFolder; +use OCP\IConfig; use OCP\IDBConnection; use OCP\IL10N; use OCP\ILogger; @@ -67,6 +68,8 @@ class ManagerTest extends TestCase { protected $l; /** @var MockObject|IEventDispatcher */ protected $dispatcher; + /** @var MockObject|IConfig */ + protected $config; protected function setUp(): void { parent::setUp(); @@ -84,6 +87,7 @@ class ManagerTest extends TestCase { $this->logger = $this->createMock(ILogger::class); $this->session = $this->createMock(IUserSession::class); $this->dispatcher = $this->createMock(IEventDispatcher::class); + $this->config = $this->createMock(IConfig::class); $this->manager = new Manager( \OC::$server->getDatabaseConnection(), @@ -92,7 +96,8 @@ class ManagerTest extends TestCase { $this->legacyDispatcher, $this->logger, $this->session, - $this->dispatcher + $this->dispatcher, + $this->config ); $this->clearTables(); } |