Exemplo n.º 1
0
 public function testIsFieldGrantedNoAces()
 {
     $collection = new \PropelObjectCollection();
     $collection->setModel('Propel\\PropelBundle\\Model\\Acl\\Entry');
     $acl = new Acl($collection, $this->getAclObjectIdentity(), new PermissionGrantingStrategy());
     $this->setExpectedException('Symfony\\Component\\Security\\Acl\\Exception\\NoAceFoundException');
     $acl->isFieldGranted('name', array(64), array($this->getRoleSecurityIdentity()));
 }