CRM-14758 fixes for 4.4

----------------------------------------
* CRM-14758: API ( contact, create ) does not always create related membership
  https://issues.civicrm.org/jira/browse/CRM-14758
Yep, I had just caught that one as well by looking ta the log ...
Sorry for giving you all these trouble on my first test!
 
From: Eileen McNaughton [mailto:notifications@github.com] 
Sent: Wednesday, July 9, 2014 7:15 PM
To: civicrm/civicrm-core
Cc: nganivet
Subject: Re: [civicrm-core] CRM-14758 fixes for 4.4 (#3623)
 
In tests/phpunit/CiviTest/CiviUnitTestCase.php:
> +        'middle_name' => array('J.', 'M.', 'P', 'L.', 'K.', 'A.', 'B.', 'C.', 'D', 'E.', 'Z.'),> +        'last_name' => array('Anderson', 'Miller', 'Smith', 'Collins', 'Peterson'),> +      ),> +      'Organization' => array(> +        'organization_name' => array('Unit Test Organization', 'Acme', 'Roberts and Sons', 'Cryo Space Labs', 'Sharper Pens'),> +      ),> +      'Household' => array(> +        'household_name' => array('Unit Test household'),> +      ),> +    );> +    $params = array('contact_type' => $contact_type);> +    foreach ($samples[$contact_type] as $key => $values) {> +      $params[$key] = $values[$seq % sizeof($values)];> +    }> +    if ($contact_type == 'Individual' ) {> +        $employer = $this->sampleContact('Organization', $seq);& another minor fix #3635
—
Reply to this email directly or view it on GitHub.