Problem/Motivation

While working on recent bug fixes, I'm getting more familiar with the existing test coverage. ForwardFormTest seems most responsible for ensuring that the actual email forwarding functionality works. But it currently is only checking that the forward form submitted and that the success message was printed. We could also see what the resulting emails contain.

Steps to reproduce

Proposed resolution

use Drupal\Core\Test\AssertMailTrait and make some assertions about the sent emails themselves.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork forward-3579221

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dww created an issue. See original summary.

  • dww committed 0eaa3d20 on 4.0.x
    task: #3579221 Harden ForwardFormTest.php to verify email contents
    

dww’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.