public function canPreProcessRecordAndTransferDataToRecordValues()
{
$provider = $this->getConfigurationProviderInstance();
$record = $this->getBasicRecord();
$parentInstance = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
$tableName = $provider->getTableName($record);
if (TRUE === empty($tableName)) {
$tableName = 'tt_content';
$provider->setTableName($tableName);
}
$fieldName = $provider->getFieldName($record);
if (TRUE === empty($fieldName)) {
$fieldName = 'pi_flexform';
$provider->setFieldName($fieldName);
}
$record['header'] = 'old';
$record[$fieldName] = array('data' => array('options' => array('lDEF' => array($tableName . '.header' => array('vDEF' => 'overridden-header')))));
$id = $record['uid'];
$provider->preProcessRecord($record, $id, $parentInstance);
$this->assertSame($record['header'], $record[$fieldName]['data']['options']['lDEF'][$tableName . '.header']['vDEF']);
}