protected $_ppTypeID;
protected $_apiversion;
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'PaymentProcessorType Create',
///////////////// civicrm_payment_processor_type_add methods
/**
- * check with no name
+ * Check with no name
*/
function testPaymentProcessorTypeCreateWithoutName() {
$payProcParams = array(
}
/**
- * create payment processor type
+ * Create payment processor type
*/
function testPaymentProcessorTypeCreate() {
$params = array( 'sequential' => 1,
///////////////// civicrm_payment_processor_type_delete methods
/**
- * check with empty array
+ * Check with empty array
*/
function testPaymentProcessorTypeDeleteEmpty() {
$params = array();
}
/**
- * check with No array
+ * Check with No array
*/
function testPaymentProcessorTypeDeleteParamsNotArray() {
$result = $this->callAPIFailure('payment_processor_type', 'delete', 'string');
}
/**
- * check if required fields are not passed
+ * Check if required fields are not passed
*/
function testPaymentProcessorTypeDeleteWithoutRequired() {
$params = array(
}
/**
- * check with incorrect required fields
+ * Check with incorrect required fields
*/
function testPaymentProcessorTypeDeleteWithIncorrectData() {
$result = $this->callAPIFailure('payment_processor_type', 'delete', array('id' => 'abcd'));
}
/**
- * check payment processor type delete
+ * Check payment processor type delete
*/
function testPaymentProcessorTypeDelete() {
$payProcType = $this->paymentProcessorTypeCreate();
///////////////// civicrm_payment_processor_type_update
/**
- * check with empty array
+ * Check with empty array
*/
function testPaymentProcessorTypeUpdateEmpty() {
$params = array();
}
/**
- * check with No array
+ * Check with No array
*/
function testPaymentProcessorTypeUpdateParamsNotArray() {
$result = $this->callAPIFailure('payment_processor_type', 'create', 'string');
}
/**
- * check with all parameters
+ * Check with all parameters
*/
function testPaymentProcessorTypeUpdate() {
// create sample payment processor type.
///////////////// civicrm_payment_processor_types_get methods
/**
- * check with empty array
+ * Check with empty array
*/
function testPaymentProcessorTypesGetEmptyParams() {
$results = $this->callAPISuccess('payment_processor_type', 'get', array( ));
}
/**
- * check with valid params array.
+ * Check with valid params array.
*/
function testPaymentProcessorTypesGet() {
$firstRelTypeParams = array(