protected $_contactIds = [];
+ /**
+ * Tear down.
+ *
+ * @throws \Exception
+ */
public function tearDown() {
$this->quickCleanup([
'civicrm_contact',
*
* Note the rule will match on organization_name OR email - hence lots of
* matches.
+ *
+ * @throws \Exception
*/
public function testGetOrganizationMatches() {
$this->setupMatchData();
/**
* Test function that gets organization duplicate pairs.
+ *
+ * @throws \Exception
*/
public function testGetOrganizationMatchesInGroup() {
$this->setupMatchData();
* Note the handling is silly - we are testing to lock in over short term
* changes not to imply any contract on the function.
*/
- public function testgetRowsElementsAndInfoSpecialInfo() {
+ public function testGetRowsElementsAndInfoSpecialInfo() {
$contact1 = $this->individualCreate([
'preferred_communication_method' => [],
'communication_style_id' => 'Familiar',
//Add Membership for the duplicate contact.
$memTypeId = $this->membershipTypeCreate();
- $membership = $this->callAPISuccess('Membership', 'create', [
+ $this->callAPISuccess('Membership', 'create', [
'membership_type_id' => $memTypeId,
'contact_id' => $duplicateContactID,
]);
* @param $params
* Array of fields to be merged from source into target contact, of the form
* ['move_<fieldName>' => <fieldValue>]
+ *
+ * @throws \CRM_Core_Exception
+ * @throws \CiviCRM_API3_Exception
*/
private function mergeContacts($originalContactID, $duplicateContactID, $params) {
$rowsElementsAndInfo = CRM_Dedupe_Merger::getRowsElementsAndInfo($originalContactID, $duplicateContactID);