diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 985e31c88928..e97f96cffb48 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -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']); }