From: Eileen McNaughton Date: Mon, 18 Dec 2023 06:02:56 +0000 (+1300) Subject: Minor params cleanup in test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6baa659dbf97a3e273dcf8ed4b5a4f77a7473c6d;p=civicrm-core.git Minor params cleanup in test --- diff --git a/tests/phpunit/api/v3/ContributionPageTest.php b/tests/phpunit/api/v3/ContributionPageTest.php index 149ea4e500..d8c1e2e95b 100644 --- a/tests/phpunit/api/v3/ContributionPageTest.php +++ b/tests/phpunit/api/v3/ContributionPageTest.php @@ -591,8 +591,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase { * @throws \Civi\API\Exception\UnauthorizedException */ public function doSubmitMembershipPriceSetPaymentPaymentProcessorRecurInstantPayment(array $params = []): void { - $this->params['is_recur'] = 1; - $this->params['recur_frequency_unit'] = $params['recur_frequency_unit']; + $params['is_recur'] = 1; $membershipTypeParams['duration_unit'] = $params['duration_unit']; if ($params['recur_frequency_unit'] === $params['duration_unit']) { $durationUnit = $params['duration_unit']; @@ -617,7 +616,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase { $submitParams = array_merge($this->getSubmitParamsMembership(TRUE), [ 'is_recur' => 1, 'frequency_interval' => 1, - 'frequency_unit' => $this->params['recur_frequency_unit'], + 'frequency_unit' => $params['recur_frequency_unit'], ]); $this->callAPISuccess('ContributionPage', 'submit', $submitParams);