getFilterFields example

$this->createMock(ProductStreamBuilderInterface::class),
        );

        $criteria = new Criteria();
        $controller->load($categoryIdnew 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,
                    
Home | Imprint | This part of the site doesn't use cookies.