ProductSearchQueryBuilder example

use Symfony\Component\Validator\Validator\ValidatorInterface;

/** * @internal * * @covers \Shopware\Elasticsearch\Product\ProductSearchQueryBuilder */
class ProductSearchQueryBuilderTest extends TestCase
{
    public function testDecoration(): void
    {
        $builder = new ProductSearchQueryBuilder(
            $this->createMock(Connection::class),
            new EntityDefinitionQueryHelper(),
            $this->getDefinition(),
            $this->createMock(TokenFilter::class),
            new Tokenizer(2),
            $this->createMock(ElasticsearchHelper::class)
        );

        static::expectException(DecorationPatternException::class);
        $builder->getDecorated();
    }

    
Home | Imprint | This part of the site doesn't use cookies.