-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't create duplicate contacts when sending test emails to contacts …
…who shouldn't receive mail
- Loading branch information
1 parent
6b7d770
commit b4f4186
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -460,10 +460,16 @@ public function testMailerSendTest_email(): void { | |
'first_name' => 'Alice', | ||
'last_name' => 'Person', | ||
]); | ||
$contactIDs['bob'] = $this->individualCreate([ | ||
'email' => '[email protected]', | ||
'first_name' => 'Bob', | ||
'last_name' => 'Person', | ||
'do_not_email' => 1, | ||
]); | ||
|
||
$mail = $this->callAPISuccess('mailing', 'create', $this->_params); | ||
|
||
$params = ['mailing_id' => $mail['id'], 'test_email' => '[email protected]', 'test_group' => NULL]; | ||
$params = ['mailing_id' => $mail['id'], 'test_email' => '[email protected],[email protected]', 'test_group' => NULL]; | ||
// Per https://lab.civicrm.org/dev/core/issues/229 ensure this is not passed through! | ||
// Per https://lab.civicrm.org/dev/mail/issues/32 test non-lowercase email | ||
$params['id'] = $mail['id']; | ||
|