$translations =
[];
foreach ($this->languages
as $locale) { $translations[$locale] =
['name' =>
$prefix . 'original-' .
$locale];
} return $translations;
} private function assertProductNames(array
$assertions, string
$id): void
{ foreach ($assertions as [$name,
$context]) { $this->
assertProductName($name,
$id,
$context);
} } private function assertProductName(string
$name, string
$id, Context
$context): void
{ $context->
setConsiderInheritance(true
);
/** @var ProductEntity $product */
$product =
$this->
getContainer() ->
get('product.repository'
) ->
search(new Criteria([$id]),
$context)->
first();