'api.default' => 0,
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => 'Get Test Contributions?',
+ 'api.aliases' => array('is_test'),
);
$params['financial_type_id']['api.aliases'] = array('contribution_type_id');
$params['payment_instrument_id']['api.aliases'] = array('contribution_payment_instrument', 'payment_instrument');
));
}
+ /**
+ * Test that test contributions can be retrieved.
+ */
+ public function testGetTestContribution() {
+ $this->callAPISuccess('Contribution', 'create', array_merge($this->_params, array('is_test' => 1)));
+ $this->callAPISuccessGetSingle('Contribution', array('is_test' => 1));
+ }
+
/**
* We need to ensure previous tested behaviour still works as part of the api contract.
*/
'source' => 'SSF',
'contribution_status_id' => 1,
);
- $this->_contribution = $this->callAPISuccess('contribution', 'create', $p);
+ $this->_contribution = $this->callAPISuccess('Contribution', 'create', $p);
$params = array(
'contribution_id' => $this->_contribution['id'],