From d27635dce00f5384684bd717da8891f9d4aca709 Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Wed, 29 Jul 2015 08:59:46 +0000 Subject: [PATCH] CRM-16923 tidyups --- api/v3/examples/ContributionPage/Submit.php | 2 +- tests/phpunit/api/v3/ContributionPageTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/v3/examples/ContributionPage/Submit.php b/api/v3/examples/ContributionPage/Submit.php index 92660e1030..c26b197384 100644 --- a/api/v3/examples/ContributionPage/Submit.php +++ b/api/v3/examples/ContributionPage/Submit.php @@ -70,7 +70,7 @@ function contribution_page_submit_expectedresult() { /* * This example has been generated from the API test suite. -* The test that created it is called "testLegacySubmitMembershipPriceSetPaymentPaymentProcessorRecurDelayed" +* The test that created it is called "testSubmitMembershipPriceSetPaymentPaymentProcessorRecurDelayed" * and can be found at: * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php * diff --git a/tests/phpunit/api/v3/ContributionPageTest.php b/tests/phpunit/api/v3/ContributionPageTest.php index 92d33434eb..ee77343408 100644 --- a/tests/phpunit/api/v3/ContributionPageTest.php +++ b/tests/phpunit/api/v3/ContributionPageTest.php @@ -157,7 +157,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase { public function testSubmitRecurMultiProcessorInstantPayment() { $this->setUpContributionPage(); $this->setupPaymentProcessor(); - $paymentProcessor2ID = $this->paymentProcessorCreate(array( + $paymentProcessor2ID = $this->paymentProcessorCreate(array( 'payment_processor_type_id' => 'Dummy', 'name' => 'processor 2', 'class_name' => 'Payment_Dummy', @@ -166,8 +166,8 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase { $dummyPP = Civi\Payment\System::singleton()->getById($paymentProcessor2ID); $dummyPP->setDoDirectPaymentResult(array('payment_status_id' => 1, 'trxn_id' => 'create_first_success')); $this->callAPISuccess('ContributionPage', 'create', array( - 'id' =>$this->_ids['contribution_page'], - 'payment_processor' => array($paymentProcessor2ID, $this->_ids['payment_processor']) + 'id' => $this->_ids['contribution_page'], + 'payment_processor' => array($paymentProcessor2ID, $this->_ids['payment_processor']), )); $priceFieldID = reset($this->_ids['price_field']); -- 2.25.1