Fix dashlet unit tests

This commit is contained in:
Yonas Habteab 2022-06-13 09:42:32 +02:00
parent 6e28912db7
commit c147341648

View File

@ -132,6 +132,7 @@ class DashletTest extends BaseDashboardTestCase
$default = $this->dashboard->getActiveHome(); $default = $this->dashboard->getActiveHome();
$pane1 = $default->getActivePane(); $pane1 = $default->getActivePane();
$pane2 = $default->getEntry('Test2'); $pane2 = $default->getEntry('Test2');
$pane2->loadDashboardEntries();
$this->assertCount( $this->assertCount(
1, 1,
@ -220,6 +221,7 @@ class DashletTest extends BaseDashboardTestCase
$default = $this->dashboard->getActiveHome(); $default = $this->dashboard->getActiveHome();
$pane1 = $default->getActivePane(); $pane1 = $default->getActivePane();
$pane2 = $default->getEntry('Test2'); $pane2 = $default->getEntry('Test2');
$pane2->loadDashboardEntries();
$pane1->manageEntry($this->getTestDashlet(), $pane2); $pane1->manageEntry($this->getTestDashlet(), $pane2);
} }