$upsertData =
[ [ 'id' =>
$this->productId,
'variantListingConfig' =>
[ 'mainVariantId' =>
$this->variantIds
['greenL'
],
],
],
];
$this->productRepository->
upsert($upsertData, Context::
createDefaultContext());
} $this->browser =
$this->
createCustomSalesChannelBrowser([ 'id' =>
$this->ids->
get('sales-channel'
),
'navigationCategoryId' =>
$this->ids->
get('category'
),
]);
$this->
setVisibilities($products);
} /**
* @param array<int, array<string, array<int|string, array<string, array<int|string, array<string, string>|string>|bool|int|string>|int|string>|bool|int|string>> $createdProducts
*/
private function setVisibilities(array
$createdProducts): void
{