[NFC] Fix Membership Type Test error on php7.4
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 19 Mar 2021 21:37:06 +0000 (08:37 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 19 Mar 2021 21:37:06 +0000 (08:37 +1100)
tests/phpunit/api/v3/MembershipTypeTest.php

index cb25518fc8c4df490c505eebb66a4ac899f25ef8..170cee5ccdc3c84be78c4e6dfd6a0c819003de7a 100644 (file)
@@ -323,7 +323,7 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     ];
     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;