Example #1
0
 /**
  * try to delete roles
  */
 public function testDeleteRoles()
 {
     $role = Tinebase_Acl_Roles::getInstance()->getRoleByName($this->objects['role']->name);
     $result = $this->_json->deleteRoles(array($role->getId()));
     $this->assertTrue($result['success']);
     // try to get it, shouldn't be found
     $this->setExpectedException('Exception');
     $role = Tinebase_Acl_Roles::getInstance()->getRoleByName($this->objects['role']->name);
 }