['DashboardLayoutOneCol', 0, [0, 0]], 'OneColLayout-Cell1' => ['DashboardLayoutOneCol', 1, [0, 1]], 'TwoColsLayout-Cell0' => ['DashboardLayoutTwoCols', 0, [0, 0]], 'TwoColsLayout-Cell1' => ['DashboardLayoutTwoCols', 1, [1, 0]], 'TwoColsLayout-Cell2' => ['DashboardLayoutTwoCols', 2, [0, 1]], 'TwoColsLayout-Cell3' => ['DashboardLayoutTwoCols', 3, [1, 1]], 'ThreeColsLayout-Cell0' => ['DashboardLayoutThreeCols', 0, [0, 0]], 'ThreeColsLayout-Cell1' => ['DashboardLayoutThreeCols', 1, [1, 0]], 'ThreeColsLayout-Cell2' => ['DashboardLayoutThreeCols', 2, [2, 0]], 'ThreeColsLayout-Cell3' => ['DashboardLayoutThreeCols', 3, [0, 1]], 'ThreeColsLayout-Cell4' => ['DashboardLayoutThreeCols', 4, [1, 1]], 'ThreeColsLayout-Cell5' => ['DashboardLayoutThreeCols', 5, [2, 1]], ]; } /** * @param string $sDashboardLayoutClass * @param int $iCellIdx * @param array $aExpectedCoordinates * @dataProvider GetDashletCoordinatesProvider * @since N°2735 */ public function testGetDashletCoordinates($sDashboardLayoutClass, $iCellIdx, $aExpectedCoordinates) { $oDashboardLayout = new $sDashboardLayoutClass(); $aDashletCoordinates = $oDashboardLayout->GetDashletCoordinates($iCellIdx); $this->assertEquals($aExpectedCoordinates, $aDashletCoordinates); } }