From 663fecd06f103ecd64974ff8521131882bcc0c0c Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 7 Aug 2013 13:38:56 +0530 Subject: [PATCH] fixes to test due to changes in createProfileContact --- tests/phpunit/CRM/Contact/BAO/ContactTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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', -- 2.25.1