Skip to content

Commit 45e3cdc

Browse files
committed
fixup! Move to lazy panel registration during registration context
1 parent 4ab2dc5 commit 45e3cdc

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

apps/dashboard/templates/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
2-
\OC_Util::addScript('dashboard', 'dashboard');
2+
\OCP\Util::addScript('dashboard', 'dashboard');
33
?>
44
<div id="app"></div>

tests/lib/AppFramework/Bootstrap/CoordinatorTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
use OCP\AppFramework\Bootstrap\IBootstrap;
3434
use OCP\AppFramework\Bootstrap\IRegistrationContext;
3535
use OCP\AppFramework\QueryException;
36+
use OCP\Dashboard\IManager;
3637
use OCP\EventDispatcher\IEventDispatcher;
3738
use OCP\ILogger;
3839
use OCP\IServerContainer;
@@ -50,6 +51,9 @@ class CoordinatorTest extends TestCase {
5051
/** @var Registry|MockObject */
5152
private $crashReporterRegistry;
5253

54+
/** @var IManager|MockObject */
55+
private $dashboardManager;
56+
5357
/** @var IEventDispatcher|MockObject */
5458
private $eventDispatcher;
5559

@@ -65,12 +69,14 @@ protected function setUp(): void {
6569
$this->appManager = $this->createMock(IAppManager::class);
6670
$this->serverContainer = $this->createMock(IServerContainer::class);
6771
$this->crashReporterRegistry = $this->createMock(Registry::class);
72+
$this->dashboardManager = $this->createMock(IManager::class);
6873
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
6974
$this->logger = $this->createMock(ILogger::class);
7075

7176
$this->coordinator = new Coordinator(
7277
$this->serverContainer,
7378
$this->crashReporterRegistry,
79+
$this->dashboardManager,
7480
$this->eventDispatcher,
7581
$this->logger
7682
);

0 commit comments

Comments
 (0)