Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test validation for Membership & participant payments #20621

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 16, 2021

Overview

Removes redundant line that creates a membership payment in the order api. This is already covered in order api tests but I also extended the validate test cover.

I think the participantPayment.create can go too but I think there are some test issues to address and I am only partially validating participant payments

Before

more silly code, less test cover

After

Reversed

Technical Details

The pledge lines are logically unreachable I believe as I don't believe we ever store the pledge_id in line_item.entity_id and tests indicate they are not reached via tests - #20604

Comments

@civibot
Copy link

civibot bot commented Jun 16, 2021

(Standard links)

@civibot civibot bot added the master label Jun 16, 2021
@eileenmcnaughton eileenmcnaughton force-pushed the mps branch 6 times, most recently from afd2f0b to d387a5c Compare June 17, 2021 08:38
@monishdeb
Copy link
Member

r-run on local, looks great. Extended unit test, captures the workflow about recording entity payments.

@monishdeb
Copy link
Member

@eileenmcnaughton test build failures https://test.civicrm.org/job/CiviCRM-Core-PR/41782/

Test Result (4 failures / +4)
api_v3_ContributionPageTest.testSubmitMembershipComplexPriceSetPaymentPaymentProcessorRecurInstantPayment
api_v3_ContributionTest.testRepeattransactionRenewMembershipOldMembership
api_v3_MembershipTest.testGetOptionsMembershipTypeID
api_v3_ProfileTest.testProfileSubmitCheckCaching

look related.

@eileenmcnaughton
Copy link
Contributor Author

it passed!

@eileenmcnaughton eileenmcnaughton merged commit ad9ae5a into civicrm:master Jun 18, 2021
@eileenmcnaughton eileenmcnaughton deleted the mps branch June 18, 2021 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants