From 21170390596d6615195353d5868a71b295bddb25 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Sep 2013 13:40:01 +1200 Subject: [PATCH] CRM-13234 tidy up on whitespace, cleanup routine --- tests/phpunit/api/v3/ProfileTest.php | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/phpunit/api/v3/ProfileTest.php b/tests/phpunit/api/v3/ProfileTest.php index 145a00b48f..5890714270 100644 --- a/tests/phpunit/api/v3/ProfileTest.php +++ b/tests/phpunit/api/v3/ProfileTest.php @@ -58,10 +58,10 @@ class api_v3_ProfileTest extends CiviUnitTestCase { function tearDown() { $this->quickCleanup(array( - 'civicrm_contact', - 'civicrm_phone', - 'civicrm_address', - ), TRUE); + 'civicrm_contact', + 'civicrm_phone', + 'civicrm_address', + ), TRUE); // ok can't be bothered wring an api to do this & truncating is crazy CRM_Core_DAO::executeQuery(' DELETE FROM civicrm_uf_group WHERE id IN (25, 26)'); } @@ -147,7 +147,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase { 'street_address' => 'is billing st', 'location_type_id' => 2, 'contact_id' => $contactId, - )); + )); $expected = current($individual); @@ -244,7 +244,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase { $params['activity_id'] = 100001; $result = $this->callAPIFailure('profile', 'get', $params, - 'Invalid Activity Id (aid).'); + 'Invalid Activity Id (aid).'); } /* @@ -344,11 +344,11 @@ class api_v3_ProfileTest extends CiviUnitTestCase { $result = $this->callAPISuccess('uf_group', 'get', array('return' => 'id')); $profileIDs = array_keys($result['values']); foreach ($profileIDs as $profileID) { - $result = $this->callAPISuccess('profile', 'getfields', array( - 'action' => 'submit', - 'profile_id' => $profileID, - 'get_options' => 'all') - ); + $result = $this->callAPISuccess('profile', 'getfields', array( + 'action' => 'submit', + 'profile_id' => $profileID, + 'get_options' => 'all') + ); } } /////////////// test $this->callAPISuccess3_profile_set ////////////////// @@ -418,9 +418,9 @@ class api_v3_ProfileTest extends CiviUnitTestCase { ); $params = array_merge(array( - 'profile_id' => 25, - 'contact_id' => $contactId, - ), $updateParams); + 'profile_id' => 25, + 'contact_id' => $contactId, + ), $updateParams); $result = $this->callAPIAndDocument('profile', 'submit', $params, __FUNCTION__, __FILE__); @@ -740,7 +740,7 @@ class api_v3_ProfileTest extends CiviUnitTestCase { 'profile_id' => 26, 'contact_id' => $contactId, 'activity_id' => $activityValues['id'], - ); + ); // expected result of above created profile $expected = array( -- 2.25.1