/** * Helper which enables the deprecated property mapper in the ActionController class. * * @param \TYPO3\CMS\Extbase\Mvc\Controller\ActionController $actionController */ protected function enableDeprecatedPropertyMapperInController(\TYPO3\CMS\Extbase\Mvc\Controller\ActionController $actionController) { $mockConfigurationManager = $this->getMock('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface'); $mockConfigurationManager->expects($this->any())->method('isFeatureEnabled')->with('rewrittenPropertyMapper')->will($this->returnValue(FALSE)); $actionController->injectConfigurationManager($mockConfigurationManager); }