From e4829236cfb5f6a3b76a381a542e43c33aa86452 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Fri, 13 Mar 2020 14:36:47 +0100 Subject: Add app config to disable user flows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/tests/ManagerTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/workflowengine/tests') 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(); } -- cgit v1.2.3