function advfrm_display_field($form_id, $field) { // @codingStandardsIgnoreEnd return Controller::displayField($form_id, $field); }
/** * Tests that append fails. * * @return void * * @global array The configuration of the plugins. */ public function testAppendFails() { global $pluginc_cf; $plugin_cf['advancedform']['csv_separator'] = ''; $_POST = array('advfrm-foo' => 'foo value', 'advfrm-bar' => 'bar"value'); chmod($this->_rootFolder, 0); $this->_eMock->expects($this->once())->with('cntwriteto', 'file', $this->_csvFile); $errorReporting = error_reporting(0); Controller::appendCsv('test'); error_reporting($errorReporting); }