From c1473416480a3051b38376e09843bd46d976268e Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 13 Jun 2022 09:42:32 +0200 Subject: [PATCH] Fix dashlet unit tests --- test/php/library/Icinga/Web/Dashboard/DashletTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/php/library/Icinga/Web/Dashboard/DashletTest.php b/test/php/library/Icinga/Web/Dashboard/DashletTest.php index 92ae01a26..d1c26a22c 100644 --- a/test/php/library/Icinga/Web/Dashboard/DashletTest.php +++ b/test/php/library/Icinga/Web/Dashboard/DashletTest.php @@ -132,6 +132,7 @@ class DashletTest extends BaseDashboardTestCase $default = $this->dashboard->getActiveHome(); $pane1 = $default->getActivePane(); $pane2 = $default->getEntry('Test2'); + $pane2->loadDashboardEntries(); $this->assertCount( 1, @@ -220,6 +221,7 @@ class DashletTest extends BaseDashboardTestCase $default = $this->dashboard->getActiveHome(); $pane1 = $default->getActivePane(); $pane2 = $default->getEntry('Test2'); + $pane2->loadDashboardEntries(); $pane1->manageEntry($this->getTestDashlet(), $pane2); }