CRM-16923 tidyups
authoreileenmcnaughton <eileen@fuzion.co.nz>
Wed, 29 Jul 2015 08:59:46 +0000 (08:59 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Wed, 29 Jul 2015 08:59:46 +0000 (08:59 +0000)
api/v3/examples/ContributionPage/Submit.php
tests/phpunit/api/v3/ContributionPageTest.php

index 92660e1030f3ff9d8fb96eced2d2744bd6de52c4..c26b197384bd2f1bb1b4749d48fea8de2f6929fb 100644 (file)
@@ -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
 *
index 92d33434eb381e5704afac7bda7c7e3ee332fb94..ee77343408d91faf6e9885629683cbaa21dd63b4 100644 (file)
@@ -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']);