= Examples = This is being shown in case you have access to the given privilege Everything inside the tag is being displayed if you have access to the given privilege. This is being shown in case you have access. This is being displayed in case you do not have access. Everything inside the "then" tag is displayed if you have access. Otherwise, everything inside the "else"-tag is displayed. {f:security.ifAccess(privilegeTarget: 'someTarget', parameters: '{param1: \'value1\'}', then: 'has access', else: 'has no access')}
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractConditionViewHelper
 /**
  * @test
  */
 public function viewHelperRendersElseIfHasAccessToPrivilegeTargetReturnsFalse()
 {
     $this->mockPrivilegeManager->expects($this->once())->method('isPrivilegeTargetGranted')->with('somePrivilegeTarget')->will($this->returnValue(false));
     $this->ifAccessViewHelper->expects($this->once())->method('renderElseChild')->will($this->returnValue('ElseViewHelperResults'));
     $arguments = ['privilegeTarget' => 'somePrivilegeTarget', 'parameters' => []];
     $this->ifAccessViewHelper->setArguments($arguments);
     $actualResult = $this->ifAccessViewHelper->render();
     $this->assertEquals('ElseViewHelperResults', $actualResult);
 }