ElasticsearchHelper example

/** * @internal * * @covers \Shopware\Elasticsearch\Framework\ElasticsearchHelper */
class ElasticsearchHelperTest extends TestCase
{
    public function testLogAndThrowException(): void
    {
        $logger = $this->createMock(LoggerInterface::class);
        $logger->expects(static::once())->method('critical');
        $helper = new ElasticsearchHelper(
            'prod',
            true,
            true,
            'prefix',
            true,
            $this->createMock(Client::class),
            $this->createMock(ElasticsearchRegistry::class),
            $this->createMock(CriteriaParser::class),
            $logger,
            $this->createMock(AbstractKeyValueStorage::class)
        );

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