*/ class AclClassTest extends AclTestCase { public function testFromAclObjectIdentity() { $type = 'Merchant'; $aclClass = AclClass::fromAclObjectIdentity(new ObjectIdentity(5, $type), $this->con); $this->assertInstanceOf('Propel\Bundle\PropelBundle\Model\Acl\AclClass', $aclClass); $this->assertEquals($type, $aclClass->getType()); $dbEntry = AclClassQuery::create()->findOne($this->con); $this->assertInstanceOf('Propel\Bundle\PropelBundle\Model\Acl\AclClass', $dbEntry); $this->assertEquals($type, $dbEntry->getType()); $this->assertEquals($dbEntry->getId(), $aclClass->getId()); } }