From 5aa090eae61b49b502cfd5d45d98f13f11081d35 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Sep 2013 13:40:36 +1200 Subject: [PATCH] CRM-13234 update test to ensure 'primary' works with & without Ucase --- tests/phpunit/api/v3/ProfileTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ProfileTest.php b/tests/phpunit/api/v3/ProfileTest.php index 5890714270..9f3df540d5 100644 --- a/tests/phpunit/api/v3/ProfileTest.php +++ b/tests/phpunit/api/v3/ProfileTest.php @@ -411,7 +411,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase { $updateParams = array( 'first_name' => 'abc2', 'last_name' => 'xyz2', - 'email-Primary' => 'abc2.xyz2@gmail.com', + 'email-primary' => 'abc2.xyz2@gmail.com', 'phone-1-1' => '022 321 826', 'country-1' => '1013', 'state_province-1' => '1000', @@ -434,6 +434,11 @@ class api_v3_ProfileTest extends CiviUnitTestCase { $this->assertEquals($value, CRM_Utils_Array::value($profileField, $profileDetails['values']), "In line " . __LINE__ . " error message: " . "missing/mismatching value for {$profileField}" ); } + unset($updateParams['email-primary']); + $updateParams['email-Primary'] = 'my@mail.com'; + $result = $this->callAPISuccess('profile', 'submit', $params); + $profileDetails = $this->callAPISuccess('profile', 'get', $getParams); + } /** -- 2.25.1