Fix the retrieveContact test fail on asserting relatiotionship for current employer.
authorAnthony Nemirovsky <anemirovsky@giantrabbit.com>
Fri, 25 Apr 2014 22:30:27 +0000 (15:30 -0700)
committerAnthony Nemirovsky <anemirovsky@giantrabbit.com>
Fri, 25 Apr 2014 22:30:27 +0000 (15:30 -0700)
commit72142c57e66542a4347e651f57981c5ce81a4b18
tree806236f4bd4d60480fd309503579b5425e60616b
parent59cacb3452cbf42a42f0a7e32290793d371aa6dc
Fix the retrieveContact test fail on asserting relatiotionship for current employer.

The test was checking for a relationship to an organization contact with an
ID of 1, but that was the ID of the individual contact record that's created
at the start of this test function. I've fixed this by explicitly creating a
organization contact and using that for the current employer relationship, so
we always know what the contact ID of the organization record will be.

This commit also adds a random string to the organization record's name to
ensure it's unique.
tests/phpunit/CRM/Contact/BAO/ContactTest.php