Exemplo n.º 1
0
 public function testEntityAclAllowed()
 {
     $attribute = new Attribute();
     $this->assertTrue($attribute->isEntityUpdateAllowed());
     $this->assertTrue($attribute->isEntityDeleteAllowed());
     $attribute->setEntityAcl(array('update' => false, 'delete' => false));
     $this->assertFalse($attribute->isEntityUpdateAllowed());
     $this->assertFalse($attribute->isEntityDeleteAllowed());
     $attribute->setEntityAcl(array('update' => true, 'delete' => true));
     $this->assertTrue($attribute->isEntityUpdateAllowed());
     $this->assertTrue($attribute->isEntityDeleteAllowed());
 }