File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
test/php/library/Icinga/Web/Dashboard Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,36 @@ public function testWhetherManageEntryManagesANewDashlet()
4040 );
4141 }
4242
43+ /**
44+ * @depends testWhetherManageEntryManagesANewDashlet
45+ */
46+ public function testWhetherManageEntryManagesNewDashletsFromMultipleModules ()
47+ {
48+ $ home = $ this ->getTestHome ();
49+ $ this ->dashboard ->manageEntry ($ home );
50+
51+ $ pane = new Pane ('Test Pane ' );
52+ $ home ->manageEntry ($ pane );
53+
54+ $ moduleDashlets = [
55+ 'monitoring ' => ['Service Problems ' => $ this ->getTestDashlet ('Service Problems ' )],
56+ 'icingadb ' => ['Host Problems ' => $ this ->getTestDashlet ('Host Problems ' )]
57+ ];
58+
59+ $ pane ->manageEntry ($ moduleDashlets );
60+
61+ $ this ->dashboard ->load (self ::TEST_HOME );
62+
63+ $ home = $ this ->dashboard ->getActiveHome ();
64+ $ pane = $ home ->getActivePane ();
65+
66+ $ this ->assertCount (
67+ 2 ,
68+ $ pane ->getEntries (),
69+ 'Pane::manageEntry() could not manage new Dashlets from multiple modules '
70+ );
71+ }
72+
4373 /**
4474 * @depends testWhetherManageEntryManagesANewDashlet
4575 */
You can’t perform that action at this time.
0 commit comments