From 702c5ce2a58bb678f130b493565c4fb0793984c2 Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 13 Sep 2013 21:48:08 +1200 Subject: [PATCH] CRM-13234 tests re-add test to ensure email-Primary still works --- tests/phpunit/api/v3/ProfileTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/ProfileTest.php b/tests/phpunit/api/v3/ProfileTest.php index 555dffd5a1..af9e9b6436 100644 --- a/tests/phpunit/api/v3/ProfileTest.php +++ b/tests/phpunit/api/v3/ProfileTest.php @@ -436,9 +436,12 @@ class api_v3_ProfileTest extends CiviUnitTestCase { } unset($updateParams['email-primary']); $updateParams['email-Primary'] = 'my@mail.com'; - $result = $this->callAPISuccess('profile', 'submit', $params); + $this->callAPISuccess('profile', 'submit', $params); $profileDetails = $this->callAPISuccess('profile', 'get', $getParams); - + foreach ($updateParams as $profileField => $value) { + $this->assertEquals($value, CRM_Utils_Array::value($profileField, $profileDetails['values']), "In line " . __LINE__ . " error message: " . "missing/mismatching value for {$profileField}" + ); + } } /** -- 2.25.1