Example #1
0
 public function testConstructorEmptyCollection()
 {
     $collection = new ObjectCollection();
     $collection->setModel('Propel\\Bundle\\PropelBundle\\Model\\Acl\\Entry');
     $aclObj = $this->getAclObjectIdentity();
     $acl = new Acl($collection, $aclObj, new PermissionGrantingStrategy());
     $this->assertEmpty($acl->getClassAces());
     $this->assertEmpty($acl->getObjectAces());
     $this->assertEmpty($acl->getFields());
     $this->assertNull($acl->getParentAcl());
     $this->assertSame($aclObj, $acl->getObjectIdentity());
     $this->assertTrue($acl->isEntriesInheriting());
 }