From 3d6a42e8a012e6df1f411114c1cf2034764f68ff Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Tue, 2 Jul 2013 21:58:26 +0530 Subject: [PATCH] code indentation fixes --- tests/phpunit/api/v3/MembershipTypeTest.php | 23 +++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tests/phpunit/api/v3/MembershipTypeTest.php b/tests/phpunit/api/v3/MembershipTypeTest.php index ce05024459..34f36cb7a1 100644 --- a/tests/phpunit/api/v3/MembershipTypeTest.php +++ b/tests/phpunit/api/v3/MembershipTypeTest.php @@ -73,7 +73,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { $params = array( 'name' => '60+ Membership', 'description' => 'people above 60 are given health instructions', - 'financial_type_id' => 1 , + 'financial_type_id' => 1, 'minimum_fee' => '200', 'duration_unit' => 'month', 'duration_interval' => '10', @@ -98,7 +98,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { $this->assertEquals($membershiptype['is_error'], '0', 'In line ' . __LINE__); $this->assertEquals($membershiptype['values'][$id]['name'], 'General', 'In line ' . __LINE__ . " id is " . $id); $this->assertEquals($membershiptype['values'][$id]['member_of_contact_id'], $this->_contactID, 'In line ' . __LINE__); - $this->assertEquals($membershiptype['values'][$id]['financial_type_id'],1, 'In line ' . __LINE__ ); + $this->assertEquals($membershiptype['values'][$id]['financial_type_id'], 1, 'In line ' . __LINE__); $this->assertEquals($membershiptype['values'][$id]['duration_unit'], 'year', 'In line ' . __LINE__); $this->assertEquals($membershiptype['values'][$id]['duration_interval'], '1', 'In line ' . __LINE__); $this->assertEquals($membershiptype['values'][$id]['period_type'], 'rolling', 'In line ' . __LINE__); @@ -127,7 +127,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { $params = array( 'name' => '60+ Membership', 'description' => 'people above 60 are given health instructions', - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'domain_id' => '1', 'minimum_fee' => '200', 'duration_unit' => 'month', @@ -167,7 +167,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { 'name' => '80+ Membership', 'description' => 'people above 80 are given health instructions', 'member_of_contact_id' => $this->_contactID, - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'domain_id' => '1', 'minimum_fee' => '200', 'duration_interval' => '10', @@ -205,7 +205,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { $params = array( 'description' => 'people above 50 are given health instructions', 'member_of_contact_id' => $this->_contactID, - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'minimum_fee' => '200', 'duration_interval' => '10', 'period_type' => 'rolling', @@ -224,7 +224,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { $params = array( 'description' => 'people above 50 are given health instructions', 'member_of_contact_id' => $this->_contactID, - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'domain_id' => '1', 'minimum_fee' => '200', 'duration_unit' => 'month', @@ -244,7 +244,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { 'name' => '40+ Membership', 'description' => 'people above 40 are given health instructions', 'member_of_contact_id' => $this->_contactID, - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'domain_id' => '1', 'minimum_fee' => '200', 'duration_unit' => 'month', @@ -284,7 +284,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { 'name' => '60+ Membership', 'description' => 'people above 60 are given health instructions', 'member_of_contact_id' => $this->_contactID, - 'financial_type_id' => 1, + 'financial_type_id' => 1, 'minimum_fee' => '1200', 'duration_unit' => 'month', 'duration_interval' => '10', @@ -320,7 +320,8 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { 'domain_id' => 1, 'version' => $this->_apiversion, ); - $membershiptype = civicrm_api('membership_type', 'update', $params); + + civicrm_api('membership_type', 'update', $params); $this->getAndCheck($params, $id, $this->_entity); } @@ -352,9 +353,9 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase { } function testDelete() { - $orgID = $this->organizationCreate(NULL); + $orgID = $this->organizationCreate(NULL); $membershipTypeID = $this->membershipTypeCreate($orgID, 1); - $params = array( + $params = array( 'id' => $membershipTypeID, 'version' => $this->_apiversion, ); -- 2.25.1