/**
* @return list<array<string, mixed>>
*/
private function createProducts(string
$salesChannelId): array
{ $productRepository =
$this->
getContainer()->
get('product.repository'
);
$manufacturerId = Uuid::
randomHex();
$taxId = Uuid::
randomHex();
$products =
[];
for ($i = 0;
$i < 10; ++
$i) { $products[] =
[ 'id' => Uuid::
randomHex(),
'productNumber' => Uuid::
randomHex(),
'stock' => 1,
'name' => 'Test',
'price' =>
[['currencyId' => Defaults::CURRENCY, 'gross' => 10, 'net' => 9, 'linked' => false
]],
'manufacturer' =>
['id' =>
$manufacturerId, 'name' => 'test'
],
'tax' =>
['id' =>
$taxId, 'taxRate' => 17, 'name' => 'with id'
],
'visibilities' =>
[ ['salesChannelId' =>
$salesChannelId, 'visibility' => ProductVisibilityDefinition::VISIBILITY_ALL
],
],
];