public function onReportRender(FilterReportEvent $event) { $report = $event->getReport(); $reportRouting = new ReportRouting($this->templatingHelper, $report); $this->setScripts($reportRouting); $this->setStyles($reportRouting); }
public function testGetReport() { $report = $this->getMockBuilder('RAM\\BaseReport')->disableOriginalConstructor()->getMockForAbstractClass(); $event = new FilterReportEvent($report); $this->assertEquals($report, $event->getReport()); }