Skip to content

Commit

Permalink
Extend participant check
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jul 7, 2021
1 parent 6ed15c0 commit cf2aa24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,9 @@ protected function validateAllContributions(): void {
foreach ($membershipPayments as $payment) {
$this->assertContains($payment['membership_id'], $memberships);
}
foreach ($participantPayments as $payment) {
$this->assertContains($payment['participant_id'], $participants);
}
$this->assertEquals($taxTotal, (float) ($contribution['tax_amount'] ?? 0));
$this->assertEquals($total + $taxTotal, $contribution['total_amount']);
}
Expand Down

0 comments on commit cf2aa24

Please sign in to comment.