From 6baa659dbf97a3e273dcf8ed4b5a4f77a7473c6d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 18 Dec 2023 19:02:56 +1300 Subject: [PATCH] Minor params cleanup in test --- tests/phpunit/api/v3/ContributionPageTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.25.1