protected function setUp() { $GLOBALS['TYPO3_DB'] = $this->getMock(\TYPO3\CMS\Core\Database\DatabaseConnection::class, array('fullQuoteStr', 'exec_SELECTgetRows')); $GLOBALS['TSFE'] = new \stdClass(); $this->extensionService = $this->getAccessibleMock(\TYPO3\CMS\Extbase\Service\ExtensionService::class, array('dummy')); $this->mockConfigurationManager = $this->getMock(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::class); $this->extensionService->_set('configurationManager', $this->mockConfigurationManager); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'] = array('ExtensionName' => array('plugins' => array('SomePlugin' => array('controllers' => array('ControllerName' => array('actions' => array('index', 'otherAction')))), 'ThirdPlugin' => array('controllers' => array('ControllerName' => array('actions' => array('otherAction', 'thirdAction')))))), 'SomeOtherExtensionName' => array('plugins' => array('SecondPlugin' => array('controllers' => array('ControllerName' => array('actions' => array('index', 'otherAction')), 'SecondControllerName' => array('actions' => array('someAction', 'someOtherAction'), 'nonCacheableActions' => array('someOtherAction'))))))); }