Skip to content

Commit 9b604c9

Browse files
committed
Remove legacy MembershipPayment check from test
1 parent 7c06e99 commit 9b604c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/phpunit/CiviTest/CiviUnitTestCase.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3581,13 +3581,8 @@ protected function validateAllContributions(): void {
35813581
$participants[$lineItem['entity_id']] = $lineItem['entity_id'];
35823582
}
35833583
}
3584-
$membershipPayments = $this->callAPISuccess('MembershipPayment', 'get', ['contribution_id' => $contribution['id'], 'return' => 'membership_id', 'version' => 3])['values'];
35853584
$participantPayments = $this->callAPISuccess('ParticipantPayment', 'get', ['contribution_id' => $contribution['id'], 'return' => 'participant_id', 'version' => 3])['values'];
3586-
$this->assertCount(count($memberships), $membershipPayments);
35873585
$this->assertCount(count($participants), $participantPayments);
3588-
foreach ($membershipPayments as $payment) {
3589-
$this->assertContains($payment['membership_id'], $memberships);
3590-
}
35913586
foreach ($participantPayments as $payment) {
35923587
$this->assertContains($payment['participant_id'], $participants);
35933588
}

0 commit comments

Comments
 (0)