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

[NFC] Use helper / api to delete contacts in tests #16825

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Switch to using helpers rather than calling BAO function directly

Before

calls in test class to CRM_Contact_BAO_Contact::deleteContact

After

Uses helper for hard delete & api for soft delete

Technical Details

CRM_Contact_BAO_Contact::deleteContact has a silly signature - let's use it less - with the goal to later cleaning up the signature we don't restore within the delete function.

Comments

@civibot
Copy link

civibot bot commented Mar 17, 2020

(Standard links)

@civibot civibot bot added the master label Mar 17, 2020
CRM_Contact_BAO_Contact::deleteContact has a silly signature - let's use it less & improve it so
it doesn't have the silly idea of supporting restore in the same function as delete, with little shared
code
@colemanw
Copy link
Member

Test-only changes work by definition if tests pass.

@colemanw colemanw merged commit 93110f1 into civicrm:master Mar 17, 2020
@colemanw colemanw deleted the del_test branch March 17, 2020 13:25
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