protected function setUp(): void
{ $this->eventDispatcher =
new EventDispatcher();
$this->searchBuilder =
$this->
createMock(ProductSearchBuilderInterface::
class);
$this->listingLoader =
$this->
createMock(ProductListingLoader::
class);
} public function testGetDecoratedShouldThrowException(): void
{ static::
expectException(DecorationPatternException::
class);
$this->
getProductSuggestRoute()->
getDecorated();
} public function testLoadThrowsExceptionForMissingSearchParameter(): void
{ static::
expectException(RoutingException::
class);
$this->
getProductSuggestRoute()->
load( new Request(),
$this->
createMock(SalesChannelContext::
class),
new Criteria() );
}