$storedData =
[[]];
$data =
[ 'subject' => 'Hi',
'senderName' => 'shopware',
'contentPlain' => 'test',
];
$mail =
new Email();
$mail->
html('text/plain'
);
$event =
new MailBeforeSentEvent( $data,
$mail,
Context::
createDefaultContext() );
$storer =
new MessageStorer();
$stored =
$storer->
store($event,
$storedData);
static::
assertArrayHasKey(MessageAware::MESSAGE,
$stored);
static::
assertIsString($stored[MessageAware::MESSAGE
]);
}