summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-06-23 15:23:28 +0200
committerJulius Härtl <jus@bitgrid.net>2020-07-15 09:27:57 +0200
commit81e559313325777649e640492cba1981aff3e54a (patch)
tree3a200debadabdc6ddb07b90699e0fb34f0e94603 /tests
parent86a7d1641aa85c83aab3b0bc22a84442d3ce3b26 (diff)
downloadnextcloud-server-81e559313325777649e640492cba1981aff3e54a.tar.gz
nextcloud-server-81e559313325777649e640492cba1981aff3e54a.zip
Move to lazy panel registration during registration context
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Bootstrap/CoordinatorTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
index c12e5eeb150..1fca34423d5 100644
--- a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
+++ b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
@@ -33,6 +33,7 @@ use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\AppFramework\QueryException;
+use OCP\Dashboard\IManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\ILogger;
use OCP\IServerContainer;
@@ -50,6 +51,9 @@ class CoordinatorTest extends TestCase {
/** @var Registry|MockObject */
private $crashReporterRegistry;
+ /** @var IManager|MockObject */
+ private $dashboardManager;
+
/** @var IEventDispatcher|MockObject */
private $eventDispatcher;
@@ -65,12 +69,14 @@ class CoordinatorTest extends TestCase {
$this->appManager = $this->createMock(IAppManager::class);
$this->serverContainer = $this->createMock(IServerContainer::class);
$this->crashReporterRegistry = $this->createMock(Registry::class);
+ $this->dashboardManager = $this->createMock(IManager::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->logger = $this->createMock(ILogger::class);
$this->coordinator = new Coordinator(
$this->serverContainer,
$this->crashReporterRegistry,
+ $this->dashboardManager,
$this->eventDispatcher,
$this->logger
);