private function createLanguage(string
$id, ?string
$parentId = Defaults::LANGUAGE_SYSTEM
): void
{ $languageRepository =
$this->
getContainer()->
get('language.repository'
);
$languageRepository->
create( [ [ 'id' =>
$id,
'name' =>
sprintf('name-%s',
$id),
'localeId' =>
$this->
getLocaleIdOfSystemLanguage(),
'parentId' =>
$parentId,
'translationCode' =>
[ 'id' => self::TEST_LOCALE_ID,
'code' => self::TEST_LANGUAGE_LOCALE_CODE,
'name' => 'Test locale',
'territory' => 'test',
],
'salesChannels' =>
[ ['id' => TestDefaults::SALES_CHANNEL
],
],
'salesChannelDefaultAssignments' =>
[ [