$migration =
new Migration1692254551FixMailTranslation();
$migration->
update($connection);
$deLangId =
$this->
fetchLanguageId($connection, 'de-DE'
);
$enLandId =
$this->
fetchLanguageId($connection, 'en-GB'
);
static::
assertNotNull($deLangId);
static::
assertNotNull($enLandId);
$templates =
[ [ 'id' =>
$this->
fetchSystemMailTemplateIdFromType( $connection,
MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_TRANSACTION_STATE_AUTHORIZED
),
'htmlDe' =>
(string) file_get_contents(__DIR__ . '/../../../../src/Core/Migration/Fixtures/mails/order_transaction.state.authorized/de-html.html.twig'
),
'plainDe' =>
(string) file_get_contents(__DIR__ . '/../../../../src/Core/Migration/Fixtures/mails/order_transaction.state.authorized/de-plain.html.twig'
),
'htmlEn' =>
(string) file_get_contents(__DIR__ . '/../../../../src/Core/Migration/Fixtures/mails/order_transaction.state.authorized/en-html.html.twig'
),
'plainEn' =>
(string) file_get_contents(__DIR__ . '/../../../../src/Core/Migration/Fixtures/mails/order_transaction.state.authorized/en-plain.html.twig'
),
],
[ 'id' =>
$this->
fetchSystemMailTemplateIdFromType( $connection,