'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
],
],
'releaseDate' =>
$releaseDates ?
$releaseDates[$i] : null,
];
} $this->
getContainer()->
get('product.repository'
)->
create($products,
$this->context
);
$this->
addTaxDataToSalesChannel($this->salesChannelContext,
end($products)['tax'
]);
return $products;
} /**
* @return list<string>
*/
private static function getReleaseDates(string
$operator): array
{ return [ (new \
DateTimeImmutable())->
modify($operator . '8 days'
)->
format('Y-m-d'
),
(