From: kurund Date: Wed, 7 Aug 2013 08:08:56 +0000 (+0530) Subject: fixes to test due to changes in createProfileContact X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=663fecd06f103ecd64974ff8521131882bcc0c0c;p=civicrm-core.git fixes to test due to changes in createProfileContact --- diff --git a/tests/phpunit/CRM/Contact/BAO/ContactTest.php b/tests/phpunit/CRM/Contact/BAO/ContactTest.php index 0d7cdd86b4..2d13d1aae1 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactTest.php @@ -733,16 +733,16 @@ class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase { ); //get the common params $contactParams = $this->contactParams(); - $unsetParams = array('location', 'gender_id', 'prefix_id', 'suffix_id', 'privacy'); + $unsetParams = array('location', 'privacy'); foreach ($unsetParams as $param) { unset($contactParams[$param]); } $profileParams = array( 'organization_name' => 'Yahoo', - 'gender' => '2', - 'individual_prefix' => '3', - 'individual_suffix' => '2', + 'gender_id' => '2', + 'prefix_id' => '3', + 'suffix_id' => '2', 'city-Primary' => 'Newark', 'contact_type' => 'Individual', 'country-Primary' => '1228', @@ -943,9 +943,6 @@ class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase { $updatePfParams = array( 'organization_name' => 'Google', - 'gender' => '1', - 'individual_prefix' => '2', - 'individual_suffix' => '3', 'city-Primary' => 'Mumbai', 'contact_type' => 'Individual', 'country-Primary' => '1228',