$indexer =
$this->
getIndexer($logger);
static::
expectException(ElasticsearchIndexingException::
class);
$indexer($message);
} private function getIndexer(?LoggerInterface
$logger = null
): MultilingualEsIndexer
{ $logger ??=
new NullLogger();
return new MultilingualEsIndexer( $this->connection,
$this->helper,
$this->registry,
$this->indexCreator,
$this->iteratorFactory,
$this->client,
$logger,
1
);
}