public function itDumpsColumnsAsDefined() { stub($this->cardwall_config)->getDashboardColumns()->returns(new Cardwall_OnTop_Config_ColumnCollection(array(new Cardwall_Column(112, "Todo", "red", "green", "blue"), new Cardwall_Column(113, "On going", "axelle", "red", "est raide")))); $this->xml_exporter->export($this->root); $column_xml = $this->root->cardwall->trackers->tracker->columns->column; $this->assertCount($column_xml, 2); }
/** * @param array $params parameters send by Event * Parameters: * 'project' => The given project * 'into_xml' => The SimpleXMLElement to fill in */ public function agiledashboard_export_xml($params) { $tracker_factory = TrackerFactory::instance(); $cardwall_xml_export = new CardwallConfigXmlExport($params['project'], $tracker_factory, $this->getConfigFactory(), new XML_RNGValidator()); $cardwall_xml_export->export($params['into_xml']); }