/** * * @param array $params * * @return <type> */ function civicrm_entity_tag_delete(&$params) { return civicrm_entity_tag_common($params, 'remove'); }
function testEntityTagCommonRemoveHHORG() { $entityTagParams = array('contact_id_i' => $this->_individualID, 'contact_id_h' => $this->_householdID, 'tag_id' => $this->_tagID); $this->entityTagAdd($entityTagParams); $params = array('contact_id_h' => $this->_householdID, 'contact_id_o' => $this->_organizationID, 'tag_id' => $this->_tagID); $result = civicrm_entity_tag_common($params, 'remove'); $this->assertEquals($result['removed'], 1); $this->assertEquals($result['not_removed'], 1); }