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

Fix test to be more valid #15743

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

I've added a check to run after tests & before tearDown to ensure that all payments have the
right entity_financial_trxn records.

This required fixing one test to be valid. It's not possible to create a contribution using the
back office for with status set to Partially Paid (it's not an option in the drop down, so
the test should create as Pending & then add a payment to get to partially paid

Before

Payment validity not checked in this class

After

Checked

Technical Details

I want to add this test to a bunch of classes that deal with payments - but there are some test setup issues to resolve

Comments

I've added a check to run after tests & before tearDown to ensure that all payments have the
right entity_financial_trxn records.

This required fixing one ttest to be valid. It's not possible to create a contribution using the
back office for with status set to Partially Paid (it's not an option in the drop down, so
the test should create as Pending & then add a payment to get to partially paid
@civibot
Copy link

civibot bot commented Nov 6, 2019

(Standard links)

@civibot civibot bot added the master label Nov 6, 2019
@seamuslee001
Copy link
Contributor

Only affects tests so Jenkins is the real checker here and is ok with it merging

@seamuslee001 seamuslee001 merged commit 33ff1fe into civicrm:master Nov 6, 2019
@seamuslee001 seamuslee001 deleted the validate_test branch November 6, 2019 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants