$config =
[ 'mailTemplateId' =>
$mailTemplateId,
'recipient' =>
[ 'type' => 'admin',
'data' =>
[ 'phuoc.cao@shopware.com' => 'shopware',
'phuoc.cao.x@shopware.com' => 'shopware',
],
],
];
$event =
new ContactFormEvent($context, TestDefaults::SALES_CHANNEL,
new MailRecipientStruct(['test@example.com' => 'Shopware ag'
]),
new DataBag());
$mailService =
new TestEmailService();
$subscriber =
new SendMailAction( $mailService,
$this->
getContainer()->
get('mail_template.repository'
),
$this->
getContainer()->
get('logger'
),
$this->
getContainer()->
get('event_dispatcher'
),
$this->
getContainer()->
get('mail_template_type.repository'
),
$this->
getContainer()->
get(Translator::
class),
$this->
getContainer()->
get(Connection::
class),
$this->
getContainer()->
get(LanguageLocaleCodeProvider::
class),