Skip to content

Commit

Permalink
Merge pull request #19845 from seamuslee001/fix_membership_type_test
Browse files Browse the repository at this point in the history
[NFC] Fix Membership Type Test error on php7.4
  • Loading branch information
seamuslee001 authored Mar 19, 2021
2 parents c3a78bd + f27e580 commit 5f0a297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/api/v3/MembershipTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function testEnableMembershipTypeOnContributionPage() {
];
foreach ($memType as $rowCount => $type) {
$membetype = CRM_Member_BAO_MembershipType::getMembershipTypeDetails($type);
$fieldParams['option_id'] = [1 => $priceFieldValue['id']];
$fieldParams['option_id'] = [1 => $priceFieldValue];
$fieldParams['option_label'][$rowCount] = $membetype['name'] ?? NULL;
$fieldParams['option_amount'][$rowCount] = $membetype['minimum_fee'] ?? 0;
$fieldParams['option_weight'][$rowCount] = $membetype['weight'] ?? NULL;
Expand Down

0 comments on commit 5f0a297

Please sign in to comment.