/** * @expectedException \Oro\Bundle\ImportExportBundle\Exception\LogicException * @expectedExceptionMessage Backend header doesn't contain fields: fax */ public function testConvertToExportFormatExtraFields() { $importedRecordWithExtraData = array('firstName' => 'John', 'lastName' => 'Doe', 'fax' => '5555'); $this->dataConverter->convertToExportFormat($importedRecordWithExtraData); }
/** * {@inheritDoc} */ public function convertToExportFormat(array $exportedRecord, $skipNullValues = true) { $exportedRecord = parent::convertToExportFormat($exportedRecord, $skipNullValues); // We need a simple string for GitHub API return reset($exportedRecord); }