/** * check with valid custom group id */ function testCustomGroupDelete() { $customGroup = $this->customGroupCreate('Individual', 'test_group'); $params = array('id' => $customGroup['id']); $customGroup =& civicrm_custom_group_delete($params); $this->assertEquals($customGroup['is_error'], 0); }
/** * Function to delete custom group * * @param int $customGroupID */ function customGroupDelete($customGroupID) { $params['id'] = $customGroupID; $result =& civicrm_custom_group_delete($params); if (CRM_Utils_Array::value('is_error', $result)) { throw new Exception('Could not delete custom group'); } return; }