TestEmailBuilder should follow guidelines for writing an email builder

Created on 6 March 2023, over 1 year ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

See docs β†’ .

Proposed resolution

  1. In TestEmailBuilder should have a create parameter for 'to'. Then in TestEmailForm::submitForm() can call $this->emailFactory->sendTypedEmail().
  2. TestEmailBuilder::fromArray() is unnecessary.

Remaining tasks

User interface changes

API changes

The create parameters could be considered an API - someone could have written their own code to send a test email. Therefore the $to parameter will be optional.

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom AdamPS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024