public function csrfTokenFieldIsNotRenderedIfNoAccountIsAuthenticated()
{
/** @var FormViewHelper|\PHPUnit_Framework_MockObject_MockObject $viewHelper */
$viewHelper = $this->getAccessibleMock(\Neos\FluidAdaptor\ViewHelpers\FormViewHelper::class, null, array(), '', false);
$this->injectDependenciesIntoViewHelper($viewHelper);
$this->securityContext->expects($this->any())->method('isInitialized')->will($this->returnValue(true));
$this->mockAuthenticationManager->expects($this->atLeastOnce())->method('isAuthenticated')->will($this->returnValue(false));
$this->securityContext->expects($this->never())->method('getCsrfProtectionToken');
$this->assertEquals('', $viewHelper->_call('renderCsrfTokenField'));
}