use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* @internal
*
* @covers \Shopware\Elasticsearch\DependencyInjection\ElasticsearchExtension
*/
class ElasticsearchExtensionTest extends TestCase
{ public function testLoad(): void
{ $extension =
new ElasticsearchExtension();
$container =
new ContainerBuilder();
$extension->
load([ 'elasticsearch' =>
[ 'hosts' => 'localhost',
],
],
$container);
$parameters =
$container->
getParameterBag()->
all();
static::
assertArrayHasKey('elasticsearch.hosts',
$parameters);
static::
assertSame('localhost',
$parameters['elasticsearch.hosts'
]);
}