diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-13 14:36:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-21 08:58:41 +0100 |
commit | e4829236cfb5f6a3b76a381a542e43c33aa86452 (patch) | |
tree | b941b55c5f9e60680b4eead93fa8af4bdf3bf450 /apps/workflowengine/tests | |
parent | 3936a9472a1400852f460ccf3a3289e3f186ded3 (diff) | |
download | nextcloud-server-e4829236cfb5f6a3b76a381a542e43c33aa86452.tar.gz nextcloud-server-e4829236cfb5f6a3b76a381a542e43c33aa86452.zip |
Add app config to disable user flows
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/tests')
-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(); } |