public function viewHelperRendersThenPartIfHasRoleReturnsTrue()
{
$role = new Role('Acme.Demo:SomeRole');
$this->mockSecurityContext->expects($this->once())->method('hasRole')->with('Acme.Demo:SomeRole')->will($this->returnValue(true));
$this->mockPolicyService->expects($this->once())->method('getRole')->with('Acme.Demo:SomeRole')->will($this->returnValue($role));
$this->mockViewHelper->expects($this->once())->method('renderThenChild')->will($this->returnValue('then-child'));
$arguments = ['role' => 'SomeRole', 'account' => null];
$this->mockViewHelper->setArguments($arguments);
$actualResult = $this->mockViewHelper->render();
$this->assertEquals('then-child', $actualResult);
}