public function getMappingResultsForPropertyReturnsValidationResultsIfErrorsHappenedInNonObjectAccessorMode()
{
$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(false));
$formViewHelper->_set('arguments', array('name' => 'propertyName'));
$validationResults = $this->createMock(\Neos\Error\Messages\Result::class);
$validationResults->expects($this->once())->method('forProperty')->with('propertyName');
$this->request->expects($this->once())->method('getInternalArgument')->with('__submittedArgumentValidationResults')->will($this->returnValue($validationResults));
$formViewHelper->_call('getMappingResultsForProperty');
}