public function setUp()
{
$this->viewConfigurationManager = new ViewConfigurationManager();
// eel evaluator
$eelEvaluator = new CompilingEvaluator();
$this->inject($this->viewConfigurationManager, 'eelEvaluator', $eelEvaluator);
// a dummy configuration manager is prepared
$this->mockConfigurationManager = $this->getMockBuilder(ConfigurationManager::class)->disableOriginalConstructor()->getMock();
$this->inject($this->viewConfigurationManager, 'configurationManager', $this->mockConfigurationManager);
// caching is deactivated
$this->mockCache = $this->getMockBuilder(VariableFrontend::class)->disableOriginalConstructor()->getMock();
$this->mockCache->expects($this->any())->method('get')->will($this->returnValue(false));
$this->inject($this->viewConfigurationManager, 'cache', $this->mockCache);
// a dummy request is prepared
$this->mockActionRequest = $this->getMockBuilder(ActionRequest::class)->disableOriginalConstructor()->getMock();
$this->mockActionRequest->expects($this->any())->method('getControllerPackageKey')->will($this->returnValue('Neos.Flow'));
$this->mockActionRequest->expects($this->any())->method('getControllerSubpackageKey')->will($this->returnValue(''));
$this->mockActionRequest->expects($this->any())->method('getControllerName')->will($this->returnValue('Standard'));
$this->mockActionRequest->expects($this->any())->method('getControllerActionName')->will($this->returnValue('index'));
$this->mockActionRequest->expects($this->any())->method('getFormat')->will($this->returnValue('html'));
$this->mockActionRequest->expects($this->any())->method('getParentRequest')->will($this->returnValue(null));
}