public function processRequestInjectsSettingsToView()
{
$this->actionController = $this->getAccessibleMock(ActionController::class, ['resolveActionMethodName', 'initializeActionMethodArguments', 'initializeActionMethodValidators', 'resolveView', 'callActionMethod']);
$this->inject($this->actionController, 'objectManager', $this->mockObjectManager);
$this->inject($this->actionController, 'controllerContext', $this->mockControllerContext);
$mockSettings = ['foo', 'bar'];
$this->inject($this->actionController, 'settings', $mockSettings);
$mockMvcPropertyMappingConfigurationService = $this->createMock(Mvc\Controller\MvcPropertyMappingConfigurationService::class);
$this->inject($this->actionController, 'mvcPropertyMappingConfigurationService', $mockMvcPropertyMappingConfigurationService);
$mockHttpRequest = $this->getMockBuilder(Http\Request::class)->disableOriginalConstructor()->getMock();
$mockHttpRequest->expects($this->any())->method('getNegotiatedMediaType')->will($this->returnValue('*/*'));
$this->mockRequest->expects($this->any())->method('getHttpRequest')->will($this->returnValue($mockHttpRequest));
$mockResponse = $this->createMock(Http\Response::class);
$mockView = $this->createMock(Mvc\View\ViewInterface::class);
$mockView->expects($this->once())->method('assign')->with('settings', $mockSettings);
$this->actionController->expects($this->once())->method('resolveView')->will($this->returnValue($mockView));
$this->actionController->processRequest($this->mockRequest, $mockResponse);
}