$this->
createMock(ProductStreamBuilderInterface::
class),
);
$criteria =
new Criteria();
$controller->
load($categoryId,
new Request(),
$this->
createMock(SalesChannelContext::
class),
$criteria);
static::
assertSame([ 'product.visibilities.visibility',
'product.visibilities.salesChannelId',
'product.active',
'product.categoriesRo.id',
],
$criteria->
getFilterFields());
} public function testFiltersAreSetForProductStreams(): void
{ $categoryId = 'categoryId';
$streamId = 'streamId';
$categoryRepository =
new StaticEntityRepository([new EntityCollection([ new PartialEntity( [ 'id' =>
$categoryId,
'productStreamId' =>
$streamId,