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

[Test] Improve cleanup of domain contacts #20253

Merged
merged 1 commit into from
May 9, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This fixes a situation where the domain contact may not have an email if the api_v3_ContributionTest
test is run in combination with certain others. The last test in the suite relies on the
domain contact having an email.

Before

class does not follow practice of tearDown calling parent

After

parent::tearDown called. In addition improvements made to createDomainContacts() function to be closer to re-instating them as originally declared

Technical Details

This test was not following the practice
of having a tearDown but the tearDown was also flawed in recreating the domain
contacts but not their emails

Comments

@civibot
Copy link

civibot bot commented May 8, 2021

(Standard links)

@civibot civibot bot added the master label May 8, 2021
@eileenmcnaughton eileenmcnaughton force-pushed the cont_test branch 2 times, most recently from 90d5edc to 9ead775 Compare May 8, 2021 23:26
@eileenmcnaughton
Copy link
Contributor Author

Looks like there will be some whackamole here ...

This fixes a situation where the domain contact may not have an email (or exist) if this
test is run in combination with certain others. The last test in the suite relies on the
domain contact having an email. This test was not following the practice
of having a tearDown but the tearDown was also flawed in recreating the domain
contacts but not their emails
@seamuslee001
Copy link
Contributor

Test only fixes and UTs have passed merging

@seamuslee001 seamuslee001 merged commit ea346cd into civicrm:master May 9, 2021
@seamuslee001 seamuslee001 deleted the cont_test branch May 9, 2021 23:52
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