Skip to content
Snippets Groups Projects
Commit 5f51d54b authored by mattwire's avatar mattwire
Browse files

Build form properly for CRM_Financial_Form_PaymentEditTest::testSubmitOnCheckNumberChange

parent 27551048
Branches
Tags
No related merge requests found
......@@ -124,6 +124,7 @@ class CRM_Financial_Form_PaymentEditTest extends CiviUnitTestCase {
'check_number' => $checkNumber1,
'contribution_status_id' => CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed'),
]);
$form->buildForm();
$form->postProcess();
$contribution = $this->callAPISuccessGetSingle('Contribution', ['contact_id' => $this->_individualID]);
$payments = CRM_Contribute_BAO_Contribution::getPaymentInfo($contribution['id'], 'contribute', TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment