From 2755104830091a93848d4a342e80babb66de03fe Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 21 Mar 2022 14:31:57 +0000 Subject: [PATCH] Build form properly for PaymentEditTest::testSubmitOnPaymentInstrumentChange --- tests/phpunit/CRM/Financial/Form/PaymentEditTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/CRM/Financial/Form/PaymentEditTest.php b/tests/phpunit/CRM/Financial/Form/PaymentEditTest.php index 88db91f478..486c90a6dc 100644 --- a/tests/phpunit/CRM/Financial/Form/PaymentEditTest.php +++ b/tests/phpunit/CRM/Financial/Form/PaymentEditTest.php @@ -54,6 +54,7 @@ class CRM_Financial_Form_PaymentEditTest extends CiviUnitTestCase { 'check_number' => '123XA', 'contribution_status_id' => CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed'), ]); + $form->buildForm(); $form->postProcess(); // fetch the financial trxn record later used in setting default values of payment edit form $contribution = $this->callAPISuccessGetSingle('Contribution', ['contact_id' => $this->_individualID]); -- 2.25.1