function advfrm_read_csv($id) { // @codingStandardsIgnoreEnd return Controller::readCsv($id); }
/** * Tests an unreadable file. * * @param string $separator A separator. * * @return void * * @dataProvider dataForCantRead * * @global array The configuration of the plugins. */ public function testCantRead($separator) { global $plugin_cf; $plugin_cf['advancedform']['csv_separator'] = $separator; $errorReporting = error_reporting(0); $this->_eMock->expects($this->once())->with('cntopen', 'file', $this->_csvFile); Controller::readCsv('test'); error_reporting($errorReporting); }