Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Add cover for setting num_terms to 2 #20939

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[Test] Add cover for setting num_terms to 2

Before

Test cover doesn't check num_terms > 1

After

it does

Technical Details

Comments

@civibot
Copy link

civibot bot commented Jul 23, 2021

(Standard links)

@civibot civibot bot added the master label Jul 23, 2021
$this->callAPISuccessGetCount('ContributionRecur', ['contact_id' => $this->_individualId], 0);
$contribution = $this->callAPISuccess('Contribution', 'get', [
'contact_id' => $this->_individualId,
'is_test' => TRUE,
]);

//CRM-20264 : Check that CC type and number (last 4 digit) is stored during backoffice membership payment
$lastFinancialTrxnId = CRM_Core_BAO_FinancialTrxn::getFinancialTrxnId($contribution['id'], 'DESC');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a silly complicated way to get the trxn - use Payment.get

@seamuslee001
Copy link
Contributor

Looks good to me merging

@seamuslee001 seamuslee001 merged commit ada999a into civicrm:master Jul 26, 2021
@seamuslee001 seamuslee001 deleted the num_term branch July 26, 2021 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants