Beispiel #1
0
 /**
  * Function to delete Relatinship Type
  * 
  * @param int $relationshipTypeID
  */
 function relationshipTypeDelete($relationshipTypeID)
 {
     $params['id'] = $relationshipTypeID;
     $result = civicrm_relationship_type_delete($params);
     if (civicrm_error($params)) {
         throw new Exception('Could not delete relationship type');
     }
     return;
 }
 /**
  * check relationship type delete
  */
 function testRelationshipTypeDelete()
 {
     // create sample relationship type.
     $params['id'] = $this->_relationshipTypeCreate();
     $result =& civicrm_relationship_type_delete($params);
     $this->assertEquals($result['is_error'], 0);
 }