Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-13 16:36:47 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-21 10:58:41 +0300
commite4829236cfb5f6a3b76a381a542e43c33aa86452 (patch)
treeb941b55c5f9e60680b4eead93fa8af4bdf3bf450 /apps/workflowengine/tests
parent3936a9472a1400852f460ccf3a3289e3f186ded3 (diff)
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.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();
}