$customerId =
$customer->id;
} return $this->
getContext($context->
getToken(),
[ SalesChannelContextService::CUSTOMER_ID =>
$customerId,
]);
} protected function assertMailSent(MailEventListener
$listener, string
$type): void
{ static::
assertTrue($listener->
sent($type), \
sprintf('Mail with type %s was not sent',
$type));
} /**
* @return mixed
*/
protected function mailListener(\Closure
$closure) { $mapping =
$this->
getContainer()->
get(Connection::
class) ->
fetchAllKeyValue('SELECT LOWER(HEX(id)), technical_name FROM mail_template_type'
);
$listener =
new MailEventListener($mapping);