Skip to content

Commit

Permalink
fixup! Move to lazy panel registration during registration context
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl committed Jun 23, 2020
1 parent 4ab2dc5 commit 45e3cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/templates/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
\OC_Util::addScript('dashboard', 'dashboard');
\OCP\Util::addScript('dashboard', 'dashboard');
?>
<div id="app"></div>
6 changes: 6 additions & 0 deletions tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
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;
Expand All @@ -50,6 +51,9 @@ class CoordinatorTest extends TestCase {
/** @var Registry|MockObject */
private $crashReporterRegistry;

/** @var IManager|MockObject */
private $dashboardManager;

/** @var IEventDispatcher|MockObject */
private $eventDispatcher;

Expand All @@ -65,12 +69,14 @@ protected function setUp(): void {
$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
);
Expand Down

0 comments on commit 45e3cdc

Please sign in to comment.