'subject' => 'Test',
'senderEmail' => 'test@example.com',
];
$mail =
$mailService->
send($data, Context::
createDefaultContext(),
[ 'text' => '<foobar>',
'url' => 'http://example.com/?foo&bar=baz',
]);
static::
assertInstanceOf(Email::
class,
$mail);
static::
assertEquals('<a href="http://example.com/?foo&bar=baz"><foobar></a>',
$mail->
getHtmlBody());
static::
assertEquals('<foobar> http://example.com/?foo&bar=baz',
$mail->
getTextBody());
}}/**
* @internal
*/
class TestEnvironment extends Environment
{ /**
* @var array<int, mixed[]>
*/