PhalconRest\Test\Unit\Api\CollectionTest::testAllowedRoles PHP Method

testAllowedRoles() public method

public testAllowedRoles ( )
    public function testAllowedRoles()
    {
        $this->collection->allow(AclRoles::ADMINISTRATOR, AclRoles::ADMINISTRATOR);
        $this->assertEquals($this->collection->getAllowedRoles(), [AclRoles::ADMINISTRATOR]);
    }