+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
);
}
- ///////////////// civicrm_payment_processor_add methods
-
/**
* Check with no name.
*/
$payProcParams = array(
'is_active' => 1,
);
- $result = $this->callAPIFailure('payment_processor', 'create', $payProcParams);
+ $this->callAPIFailure('payment_processor', 'create', $payProcParams);
}
/**
$params = $this->_params;
$result = $this->callAPIAndDocument('payment_processor', 'create', $params, __FUNCTION__, __FILE__);
$this->assertNotNull($result['id']);
-
- //assertDBState compares expected values in $result to actual values in the DB
$this->assertDBState('CRM_Financial_DAO_PaymentProcessor', $result['id'], $params);
return $result['id'];
}
$this->assertAPISuccess($result);
}
- ///////////////// civicrm_payment_processor_delete methods
-
/**
* Check payment processor delete.
*/
'id' => $id,
);
- $result = $this->callAPIAndDocument('payment_processor', 'delete', $params, __FUNCTION__, __FILE__);
+ $this->callAPIAndDocument('payment_processor', 'delete', $params, __FUNCTION__, __FILE__);
}
- ///////////////// civicrm_payment_processors_get methods
-
/**
* Check with valid params array.
*/
);
$results = $this->callAPISuccess('payment_processor', 'get', $params);
- $this->assertEquals(1, $results['count'], ' in line ' . __LINE__);
- $this->assertEquals('test@test.com', $results['values'][$results['id']]['user_name'], ' in line ' . __LINE__);
+ $this->assertEquals(1, $results['count']);
+ $this->assertEquals('test@test.com', $results['values'][$results['id']]['user_name']);
}
}