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
This function should return the same objects a before if $seq = 0, which is the default value.
You can do a print_r($params) at the end fo the call to make sure.
The test suite did not fail on my server after I merged this, but I can double-check.
Do you know which tests are failing?
 
PS. I am leaving on vacation Friday, so would rather not spend more time on this now.
Worse comes to worse put it aside and I will check when coming back.
 
From: Eileen McNaughton [mailto:notifications@github.com] 
Sent: Wednesday, July 9, 2014 6:43 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);do you want to do as a PR - tests failing since I merged it
—
Reply to this email directly or view it on GitHub.