private EntityRepository
$productRepository;
private AbstractProductCrossSellingRoute
$route;
private KernelBrowser
$browser;
protected function setUp(): void
{ $this->salesChannelContext = Generator::
createSalesChannelContext( null,
null,
(new SalesChannelEntity())->
assign([ 'id' => TestDefaults::SALES_CHANNEL,
'taxCalculationType' => SalesChannelDefinition::CALCULATION_TYPE_VERTICAL,
]) );
$this->productRepository =
$this->
getContainer()->
get('product.repository'
);
$this->route =
$this->
getContainer()->
get(ProductCrossSellingRoute::
class);
$this->browser =
$this->
createCustomSalesChannelBrowser([ 'id' => TestDefaults::SALES_CHANNEL,
'languages' =>
[],
]);
}