/**
* Function tests that financial records are updated when Payment Instrument is changed.
*/
- public function testCreateUpdateContributionPaymentInstrument() {
+ public function testCreateUpdateContributionPaymentInstrument(): void {
$instrumentId = $this->_addPaymentInstrument();
$contribParams = [
'contact_id' => $this->_individualId,
'id' => $contribution['id'],
'payment_instrument_id' => $instrumentId,
]);
- $contribution = $this->callAPISuccess('contribution', 'create', $newParams);
+ $contribution = $this->callAPISuccess('Contribution', 'create', $newParams);
$this->assertAPISuccess($contribution);
$this->checkFinancialTrxnPaymentInstrumentChange($contribution['id'], 4, $instrumentId);
// cleanup - delete created payment instrument
- $this->_deletedAddedPaymentInstrument();
+ $this->deletedAddedPaymentInstrument();
}
/**
$this->checkFinancialTrxnPaymentInstrumentChange($contribution['id'], 4, $instrumentId, -100);
// cleanup - delete created payment instrument
- $this->_deletedAddedPaymentInstrument();
+ $this->deletedAddedPaymentInstrument();
}
/**
/**
* CRM-14151 - Test completing a transaction via the API.
*/
- public function testCompleteTransactionWithReceiptDateSet() {
+ public function testCompleteTransactionWithReceiptDateSet(): void {
$this->swapMessageTemplateForTestTemplate();
$mut = new CiviMailUtils($this, TRUE);
$this->createLoggedInUser();
return $optionValue['values'][$optionValue['id']]['value'];
}
- public function _deletedAddedPaymentInstrument() {
+ public function deletedAddedPaymentInstrument() {
$result = $this->callAPISuccess('OptionValue', 'get', [
'option_group_id' => 'payment_instrument',
'name' => 'Test Card',