コード例 #1
0
ファイル: AclTest.php プロジェクト: propelorm/PropelAclBundle
 public function testIsFieldGrantedNoAces()
 {
     $collection = new \PropelObjectCollection();
     $collection->setModel('Propel\\Bundle\\PropelAclBundle\\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()));
 }