Acl\Test\TestCase\Controller\Component\AclComponentTest::testConstrutorException PHP Method

testConstrutorException() public method

test that constructor throws an exception when Acl.classname is a non-existent class
public testConstrutorException ( ) : void
return void
    public function testConstrutorException()
    {
        Configure::write('Acl.classname', 'AclClassNameThatDoesNotExist');
        $Collection = new ComponentRegistry();
        new AclComponent($Collection);
    }