private function insertData(): void
{ $this->salesChannelId1 =
$this->
createSalesChannel('sales-1'
);
$this->salesChannelId2 =
$this->
createSalesChannel('sales-2'
);
$this->categoryId =
$this->ids->
get('category'
);
$this->productId1 =
$this->ids->
get('product-1'
);
$this->productId2 =
$this->ids->
get('product-2'
);
$this->productId3 =
$this->ids->
get('product-3'
);
$this->productId4 =
$this->ids->
get('product-4'
);
$products =
[ $this->
createProduct($this->productId1,
[ $this->salesChannelId2 => ProductVisibilityDefinition::VISIBILITY_ALL,
]),
$this->
createProduct($this->productId2,
[ $this->salesChannelId1 => ProductVisibilityDefinition::VISIBILITY_SEARCH,
$this->salesChannelId2 => ProductVisibilityDefinition::VISIBILITY_SEARCH,
]),
$this->
createProduct($this->productId3,
[ $this->salesChannelId1 => ProductVisibilityDefinition::VISIBILITY_ALL,
$this->salesChannelId2 => ProductVisibilityDefinition::VISIBILITY_LINK,
]),
$this->
createProduct($this->productId4,
[