Neos\Flow\Tests\Unit\Security\AccountTest::hasRoleReturnsFalseForAssignedButNonExistentRole PHP Method

hasRoleReturnsFalseForAssignedButNonExistentRole() public method

    public function hasRoleReturnsFalseForAssignedButNonExistentRole()
    {
        $this->inject($this->account, 'roleIdentifiers', ['Acme.Demo:NoLongerThere', $this->administratorRole->getIdentifier()]);
        $this->assertTrue($this->account->hasRole($this->administratorRole));
        $this->assertFalse($this->account->hasRole(new Role('Acme.Demo:NoLongerThere')));
    }