Allow full name to be passed to mailer

[MAILPOET-2307]
This commit is contained in:
Pavel Dohnal
2019-09-04 15:53:11 +02:00
committed by Jack Kitterhing
parent 0b96d13d1a
commit ef29a301fc
2 changed files with 9 additions and 2 deletions

View File

@@ -155,6 +155,12 @@ class MailerTest extends \MailPoetTest {
'email' => 'test@email.com',
])
)->equals('First Last <test@email.com>');
expect($mailer->formatSubscriberNameAndEmailAddress(
[
'full_name' => 'First Last',
'email' => 'test@email.com',
])
)->equals('First Last <test@email.com>');
}
function testItCanConvertNonASCIIEmailAddressString() {