public function getMappingResultsForPropertyReturnsValidationResultsIfErrorsHappenedInObjectAccessorMode()
{
$formViewHelper = $this->getAccessibleMock(\Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormFieldViewHelper::class, array('isObjectAccessorMode'), array(), '', false);
$this->injectDependenciesIntoViewHelper($formViewHelper);
$formViewHelper->expects($this->any())->method('isObjectAccessorMode')->will($this->returnValue(true));
$formViewHelper->_set('arguments', array('property' => 'propertyName'));
$this->viewHelperVariableContainerData = array(\Neos\FluidAdaptor\ViewHelpers\FormViewHelper::class => array('formObjectName' => 'someObject'));
$validationResults = $this->createMock(\Neos\Error\Messages\Result::class);
$validationResults->expects($this->once())->method('forProperty')->with('someObject.propertyName')->will($this->returnValue($validationResults));
$this->request->expects($this->once())->method('getInternalArgument')->with('__submittedArgumentValidationResults')->will($this->returnValue($validationResults));
$formViewHelper->_call('getMappingResultsForProperty');
}