/*
* 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
*
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',
$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']);