From 69810556d4a33b82588fcffee3dce5b6f08cba74 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 21 Jan 2016 02:33:37 +0530 Subject: [PATCH] CRM-16259, removed cruft code ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- tests/phpunit/api/v3/PaymentTest.php | 43 ---------------------------- 1 file changed, 43 deletions(-) diff --git a/tests/phpunit/api/v3/PaymentTest.php b/tests/phpunit/api/v3/PaymentTest.php index 23803cc204..2dc5fa3357 100644 --- a/tests/phpunit/api/v3/PaymentTest.php +++ b/tests/phpunit/api/v3/PaymentTest.php @@ -26,7 +26,6 @@ */ require_once 'CiviTest/CiviUnitTestCase.php'; -require_once 'CiviTest/CiviMailUtils.php'; /** @@ -41,21 +40,9 @@ class api_v3_PaymentTest extends CiviUnitTestCase { * Assume empty database with just civicrm_data. */ protected $_individualId; - protected $_contribution; protected $_financialTypeId = 1; protected $_apiversion; - protected $_entity = 'Contribution'; public $debug = 0; - protected $_params; - protected $_ids = array(); - protected $_pageParams = array(); - - /** - * Parameters to create payment processor. - * - * @var array - */ - protected $_processorParams = array(); /** * Setup function. @@ -65,28 +52,6 @@ class api_v3_PaymentTest extends CiviUnitTestCase { $this->_apiversion = 3; $this->_individualId = $this->individualCreate(); - $this->_params = array( - 'contact_id' => $this->_individualId, - 'receive_date' => '20120511', - 'total_amount' => 100.00, - 'financial_type_id' => $this->_financialTypeId, - 'non_deductible_amount' => 10.00, - 'fee_amount' => 5.00, - 'net_amount' => 95.00, - 'source' => 'SSF', - 'contribution_status_id' => 1, - ); - $this->_processorParams = array( - 'domain_id' => 1, - 'name' => 'Dummy', - 'payment_processor_type_id' => 10, - 'financial_account_id' => 12, - 'is_active' => 1, - 'user_name' => '', - 'url_site' => 'http://dummy.com', - 'url_recur' => 'http://dummy.com', - 'billing_mode' => 1, - ); } /** @@ -311,14 +276,6 @@ class api_v3_PaymentTest extends CiviUnitTestCase { )); } - /** - * function to delete data - */ - public function cleanUpAfterPriceSets() { - $this->quickCleanUpFinancialEntities(); - $this->contactDelete($this->_ids['contact']); - } - /** * Test cancel payment api */ -- 2.25.1