array('DashboardLayoutOneCol', 0, array(0, 0)), 'OneColLayout-Cell1' => array('DashboardLayoutOneCol', 1, array(0, 1)), 'TwoColsLayout-Cell0' => array('DashboardLayoutTwoCols', 0, array(0, 0)), 'TwoColsLayout-Cell1' => array('DashboardLayoutTwoCols', 1, array(1, 0)), 'TwoColsLayout-Cell2' => array('DashboardLayoutTwoCols', 2, array(0, 1)), 'TwoColsLayout-Cell3' => array('DashboardLayoutTwoCols', 3, array(1, 1)), 'ThreeColsLayout-Cell0' => array('DashboardLayoutThreeCols', 0, array(0, 0)), 'ThreeColsLayout-Cell1' => array('DashboardLayoutThreeCols', 1, array(1, 0)), 'ThreeColsLayout-Cell2' => array('DashboardLayoutThreeCols', 2, array(2, 0)), 'ThreeColsLayout-Cell3' => array('DashboardLayoutThreeCols', 3, array(0, 1)), 'ThreeColsLayout-Cell4' => array('DashboardLayoutThreeCols', 4, array(1, 1)), 'ThreeColsLayout-Cell5' => array('DashboardLayoutThreeCols', 5, array(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); } }