public function setUp()
{
$this->actionController = $this->getAccessibleMock(ActionController::class, ['dummy']);
$this->mockRequest = $this->getMockBuilder(Mvc\ActionRequest::class)->disableOriginalConstructor()->getMock();
$this->mockRequest->expects($this->any())->method('getControllerPackageKey')->will($this->returnValue('Some.Package'));
$this->mockRequest->expects($this->any())->method('getControllerSubpackageKey')->will($this->returnValue('Subpackage'));
$this->mockRequest->expects($this->any())->method('getFormat')->will($this->returnValue('theFormat'));
$this->mockRequest->expects($this->any())->method('getControllerName')->will($this->returnValue('TheController'));
$this->mockRequest->expects($this->any())->method('getControllerActionName')->will($this->returnValue('theAction'));
$this->inject($this->actionController, 'request', $this->mockRequest);
$this->mockObjectManager = $this->createMock(ObjectManagerInterface::class);
$this->inject($this->actionController, 'objectManager', $this->mockObjectManager);
$this->mockControllerContext = $this->getMockBuilder(Mvc\Controller\ControllerContext::class)->disableOriginalConstructor()->getMock();
$this->inject($this->actionController, 'controllerContext', $this->mockControllerContext);
$this->mockViewConfigurationManager = $this->createMock(Mvc\ViewConfigurationManager::class);
$this->inject($this->actionController, 'viewConfigurationManager', $this->mockViewConfigurationManager);
}