From f5ec25699cf5cfe210b9db0d05dae63daf35f007 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 18 Jan 2016 18:51:24 +0530 Subject: [PATCH] CRM-16259, fixed jenkins checkstyle error ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- tests/phpunit/api/v3/PaymentTest.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/api/v3/PaymentTest.php b/tests/phpunit/api/v3/PaymentTest.php index 5f610f1ec3..cceecd38fa 100644 --- a/tests/phpunit/api/v3/PaymentTest.php +++ b/tests/phpunit/api/v3/PaymentTest.php @@ -140,7 +140,7 @@ class api_v3_PaymentTest extends CiviUnitTestCase { ); $contribution = $this->callAPISuccess('contribution', 'create', $params); //Create partially paid contribution - + //Create partial payment $params = array( 'contribution_id' => $contribution['id'], @@ -183,12 +183,12 @@ class api_v3_PaymentTest extends CiviUnitTestCase { $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status'], 'Completed'); $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 200.00); - + $this->callAPISuccess('Contribution', 'Delete', array( 'id' => $contribution['id'], )); } - + public function testCreatePaymentLineItems() { // Create priceset & price fields @@ -204,7 +204,7 @@ class api_v3_PaymentTest extends CiviUnitTestCase { ); $contribution = $this->callAPISuccess('contribution', 'create', $params); //Create partially paid contribution - + //Create partial payment $params = array( 'contribution_id' => $contribution['id'], @@ -247,7 +247,7 @@ class api_v3_PaymentTest extends CiviUnitTestCase { $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status'], 'Completed'); $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 200.00); - + $this->callAPISuccess('Contribution', 'Delete', array( 'id' => $contribution['id'], )); @@ -262,9 +262,6 @@ class api_v3_PaymentTest extends CiviUnitTestCase { /** * Create price set. * - * - * @param $entity - * @param array $params */ public function createPriceSet() { $contributionPageResult = $this->callAPISuccess('contribution_page', 'create', array( -- 2.25.1