/** * @test * @expectedException RuntimeException * @return void */ public function downloadRegistrationsCsvThrowsExceptionIfDefaultStorageNotFound() { $mockResourceFactory = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceFactory', [], [], '', false); $mockResourceFactory->expects($this->once())->method('getDefaultStorage')->will($this->returnValue(null)); $this->inject($this->subject, 'resourceFactory', $mockResourceFactory); $this->subject->downloadRegistrationsCsv(1, ['settings']); }
/** * Export registrations for a given event * * @param int $eventUid Event UID * * @return bool Always FALSE, since no view should be rendered */ public function exportAction($eventUid) { $this->exportService->downloadRegistrationsCsv($eventUid, $this->settings['csvExport']); return FALSE; }