hasRole() public method

Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively.
public hasRole ( string $roleIdentifier ) : boolean
$roleIdentifier string The string representation of the role to search for
return boolean TRUE, if a role with the given string representation was found
 /**
  * @test
  */
 public function hasRoleReturnsTrueForEverybodyRole()
 {
     $helper = new SecurityHelper();
     $this->assertTrue($helper->hasRole('Neos.Flow:Everybody'));
 }