render() public method

If no errors are there, it renders the -child.
public render ( string $for = null ) : string
$for string The argument or property name or path to check for error(s)
return string
 /**
  * @test
  */
 public function queriesResultForPropertyIfPropertyPathIsGiven()
 {
     $resultMock = $this->createMock(\Neos\Error\Messages\Result::class);
     $resultMock->expects($this->once())->method('forProperty')->with('foo.bar.baz')->will($this->returnValue(new Result()));
     /** @var $requestMock \PHPUnit_Framework_MockObject_MockObject */
     $requestMock = $this->request;
     $requestMock->expects($this->once())->method('getInternalArgument')->with('__submittedArgumentValidationResults')->will($this->returnValue($resultMock));
     $this->viewHelper->render('foo.bar.baz');
 }