*/
public function testPaymentProcessorTypeCreateWithoutName() {
$payProcParams = array(
- 'is_active' => 1,);
+ 'is_active' => 1,
+ );
$result = $this->callAPIFailure('payment_processor_type', 'create', $payProcParams);
$this->assertEquals($result['error_message'],
'Mandatory key(s) missing from params array: name, title, class_name, billing_mode'
*/
public function testPaymentProcessorTypeCreate() {
$params = array(
- 'sequential' => 1,
+ 'sequential' => 1,
'name' => 'API_Test_PP',
'title' => 'API Test Payment Processor',
'class_name' => 'CRM_Core_Payment_APITest',
'title' => 'API Test Payment Processor 2',
'class_name' => 'CRM_Core_Payment_APITest 2',
'billing_mode' => 2,
- 'is_recur' => 0,);
+ 'is_recur' => 0,
+ );
$result = $this->callAPISuccess('payment_processor_type', 'create', $params);
$this->assertNotNull($result['id']);
'title' => 'API Test Payment Processor',
'class_name' => 'CRM_Core_Payment_APITest',
'billing_mode' => 1,
- 'is_recur' => 0,);
+ 'is_recur' => 0,
+ );
$first = $this->callAPISuccess('PaymentProcessorType', 'Create', $firstRelTypeParams);
'title' => 'API Test Payment Processor 2',
'class_name' => 'CRM_Core_Payment_APITest 2',
'billing_mode' => 2,
- 'is_recur' => 0,);
+ 'is_recur' => 0,
+ );
$second = $this->callAPISuccess('PaymentProcessorType', 'Create', $secondRelTypeParams);
$result = $this->callAPISuccess('payment_processor_type', 'get', array());
'title' => 'API Test Payment Processor 11',
'class_name' => 'CRM_Core_Payment_APITest_11',
'billing_mode' => 1,
- 'is_recur' => 0,);
+ 'is_recur' => 0,
+ );
$first = $this->callAPISuccess('PaymentProcessorType', 'Create', $firstRelTypeParams);
'title' => 'API Test Payment Processor 12',
'class_name' => 'CRM_Core_Payment_APITest_12',
'billing_mode' => 2,
- 'is_recur' => 0,);
+ 'is_recur' => 0,
+ );
$second = $this->callAPISuccess('PaymentProcessorType', 'Create', $secondRelTypeParams);
$params = array(
- 'name' => 'API_Test_PP_12',);
+ 'name' => 'API_Test_PP_12',
+ );
$result = $this->callAPISuccess('payment_processor_type', 'get', $params);
$this->assertAPISuccess($result);