public function canPostProcessRecord() { $provider = $this->getConfigurationProviderInstance(); $recordService = $this->getMock('FluidTYPO3\\Flux\\Service\\WorkspacesAwareRecordService', array('getSingle', 'update')); $recordService->expects($this->once())->method('getSingle')->willReturn($row); $recordService->expects($this->once())->method('update'); $provider->injectRecordService($recordService); $record = $this->getBasicRecord(); $parentInstance = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler'); $record['test'] = 'test'; $id = $record['uid']; $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[$fieldName] = array('data' => array('options' => array('lDEF' => array('settings.input' => array('vDEF' => 'test'), 'settings.input_clear' => array('vDEF' => 1))))); $parentInstance->datamap[$tableName][$id] = $record; $record[$fieldName] = Xml::EXPECTING_FLUX_REMOVALS; $provider->postProcessRecord('update', $id, $record, $parentInstance); $this->assertIsString($record[$fieldName]); $this->assertNotContains('settings.input', $record[$fieldName]); }