/**
  * @test
  */
 public function overrideConfigurationFromFlexFormChecksForDataIsArrayAndEmpty()
 {
     /** @var $flexFormService \TYPO3\CMS\Extbase\Service\FlexFormService|\PHPUnit_Framework_MockObject_MockObject */
     $flexFormService = $this->getMock('TYPO3\\CMS\\Extbase\\Service\\FlexFormService', array('convertFlexFormContentToArray'));
     $flexFormService->expects($this->never())->method('convertFlexFormContentToArray');
     $this->frontendConfigurationManager->_set('flexFormService', $flexFormService);
     $this->mockContentObject->data = array('pi_flexform' => array());
     $frameworkConfiguration = array('persistence' => array('storagePid' => '98'));
     $this->assertSame(array('persistence' => array('storagePid' => '98')), $this->frontendConfigurationManager->_call('overrideConfigurationFromFlexForm', $frameworkConfiguration));
 }