$this->
createMock(SalesChannelContext::
class),
$criteria )->
getResult();
static::
assertSame([ 'product.visibilities.visibility',
'product.visibilities.salesChannelId',
'product.active',
'product.product_stream',
],
$criteria->
getFilterFields());
static::
assertSame($streamId,
$result->
getStreamId());
} public function testClassIsBaseOfDecorationChain(): void
{ $controller =
new ProductListingRoute( $this->
createMock(ProductListingLoader::
class),
$this->
createMock(EntityRepository::
class),
$this->
createMock(ProductStreamBuilderInterface::
class),
);
$this->
expectException(DecorationPatternException::
class);