From: Pradeep Nayak Date: Mon, 18 Jan 2016 13:21:24 +0000 (+0530) Subject: CRM-16259, fixed jenkins checkstyle error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f5ec25699cf5cfe210b9db0d05dae63daf35f007;p=civicrm-core.git CRM-16259, fixed jenkins checkstyle error ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- 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(