aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/tests/ManagerTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-22 10:36:23 +0100
committerGitHub <noreply@github.com>2020-03-22 10:36:23 +0100
commita376f19a2840c9611d909cac8ebd935c5f1bc9b2 (patch)
tree7114526fb60429c77552e68700f1216821b0640e /apps/workflowengine/tests/ManagerTest.php
parentbacf0d802a09f64738827fbd347871ee8fd47b80 (diff)
parente4829236cfb5f6a3b76a381a542e43c33aa86452 (diff)
downloadnextcloud-server-a376f19a2840c9611d909cac8ebd935c5f1bc9b2.tar.gz
nextcloud-server-a376f19a2840c9611d909cac8ebd935c5f1bc9b2.zip
Merge pull request #19930 from nextcloud/enh/19804/wfe-disable-user-flows
Add app config to disable user flows
Diffstat (limited to 'apps/workflowengine/tests/ManagerTest.php')
-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 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();
}