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

[REF] Extend testing on membership batch entry & minor cleanup #20394

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 24, 2021

Overview

This extends the cover on the batch entry test (by doing post test validation) and does a minor
extraction on the getDomainEmail address

Before

Duplicated code & param passed around

After

Replaced by a function call

Technical Details

Other forms use more nuanced from addresses - out of scope here but this would make it easier to update

Comments

@civibot
Copy link

civibot bot commented May 24, 2021

(Standard links)

@civibot civibot bot added the master label May 24, 2021
// retrieve 'from email id' for acknowledgement
$receiptFrom = $formValues['from_email_address'] ?? NULL;

protected function emailReceipt($form, &$formValues, $membership): bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emailReceipt was copied here from another class recently so we know it's not called elsewhere

This extends the cover on the batch entry test (by doing post test validation) and does a minor
extraction on the getDomainEmail address
@eileenmcnaughton
Copy link
Contributor Author

@monishdeb are you able to review / merge this and the related one #20396 ?

@monishdeb
Copy link
Member

Tested on local, works fine. Code changes look good. Merging now

@monishdeb monishdeb merged commit 530b924 into civicrm:master Jul 1, 2021
@colemanw colemanw deleted the entry branch July 1, 2021 17:16
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