Skip to content

test: Adding unit tests for civicrm.repository.report_donation()

stephen requested to merge unit-testing-resque-output into main

Despite the crucial function that civicrm.repository.report_donation() performs, it has not yet had unit tests written against it. This commit attempts to address that by adding baseline testing for the following types of possible invocation:

  • One-time Stripe payments
  • One-time Paypal payments
  • Recurring Stripe payments (initial, subsequent, and failed due to card expiry)
  • Recurring Paypal payments (initial, subsequent, and failed due to card expiry)

Merge request reports