private EventDispatcher
$eventDispatcher;
private AbstractProductCloseoutFilterFactory
$productCloseoutFilterFactory;
protected function setUp(): void
{ $this->productListRouteMock =
$this->
createMock(ProductListRoute::
class);
$this->systemConfigServiceMock =
$this->
createMock(SystemConfigService::
class);
$this->salesChannelContextMock =
$this->
createMock(SalesChannelContext::
class);
$this->eventDispatcher =
new EventDispatcher();
$this->productCloseoutFilterFactory =
new ProductCloseoutFilterFactory();
} public function testItThrowsExceptionWithInvalidProductIds(): void
{ if (Feature::
isActive('v6.6.0.0'
)) { static::
expectException(RoutingException::
class);
} else { static::
expectException(MissingRequestParameterException::
class);
} $request =
new Request();