From: Pradeep Nayak Date: Wed, 20 Jan 2016 20:04:08 +0000 (+0530) Subject: CRM-16259, removed cruft code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d332906ff41df65112c836ec354812d48d45ad55;p=civicrm-core.git CRM-16259, removed cruft code ---------------------------------------- * 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 f4998646d4..3938e083ad 100644 --- a/tests/phpunit/api/v3/PaymentTest.php +++ b/tests/phpunit/api/v3/PaymentTest.php @@ -319,56 +319,6 @@ class api_v3_PaymentTest extends CiviUnitTestCase { $this->contactDelete($this->_ids['contact']); } - - /** - * Create price set. - * - */ - public function createPriceSet() { - $contributionPageResult = $this->callAPISuccess('contribution_page', 'create', array( - 'title' => "Test Contribution Page", - 'financial_type_id' => 1, - 'currency' => 'NZD', - 'is_pay_later' => 1, - 'is_monetary' => TRUE, - 'is_email_receipt' => FALSE, - )); - $priceSet = $this->callAPISuccess('price_set', 'create', array( - 'is_quick_config' => 0, - 'extends' => 'CiviContribute', - 'financial_type_id' => 1, - 'title' => 'My Test Price Set', - )); - $priceSetID = $priceSet['id']; - CRM_Price_BAO_PriceSet::addTo('civicrm_contribution_page', $contributionPageResult['id'], $priceSetID); - - $priceField = $this->callAPISuccess('price_field', 'create', array( - 'price_set_id' => $priceSetID, - 'label' => 'Goat Breed', - 'html_type' => 'Radio', - )); - $priceFieldValue = $this->callAPISuccess('price_field_value', 'create', array( - 'price_set_id' => $priceSetID, - 'price_field_id' => $priceField['id'], - 'label' => 'Long Haired Goat', - 'amount' => 50, - 'financial_type_id' => 'Donation', - ) - ); - $this->_priceIds['price_field_value'] = array($priceFieldValue['id']); - $priceFieldValue = $this->callAPISuccess('price_field_value', 'create', array( - 'price_set_id' => $priceSetID, - 'price_field_id' => $priceField['id'], - 'label' => 'Shoe-eating Goat', - 'amount' => 150, - 'financial_type_id' => 'Donation', - ) - ); - $this->_priceIds['price_field_value'][] = $priceFieldValue['id']; - $this->_priceIds['price_set'] = $priceSetID; - $this->_priceIds['price_field'] = $priceField['id']; - } - /** * Test cancel payment api */