$this->importExportProfileRepository =
$this->
getContainer()->
get('import_export_profile.repository'
);
$this->connection->
executeStatement('DELETE FROM import_export_profile'
);
parent::
setUp();
} public function testMigrateGermanIsStandard(): void
{ // This is intended, the current german language ID will become the english language id afterwards
$englishId =
$this->
getDeDeLanguageId();
$context =
new Context(new SystemSource(),
[], Defaults::CURRENCY,
[$englishId, Defaults::LANGUAGE_SYSTEM
]);
$this->importExportProfileRepository->
create($this->
getEnglishData(),
$context);
$this->
setDefaultLanguageToLocale('de-DE'
);
$this->
executeMigration();
$translations =
$this->connection->
fetchAllAssociative('SELECT * FROM import_export_profile_translation'
);
static::
assertCount(12,
$translations);
$labels =
array_column($translations, 'label'
);
static::
assertContains('Standardprofil Variantenkonfiguration',
$labels);
}