use Shopware\Elasticsearch\Framework\Indexing\Event\ElasticsearchIndexCreatedEvent;
/**
* @internal
*
* @covers \Shopware\Elasticsearch\Framework\Indexing\Event\ElasticsearchIndexCreatedEvent
*/
class ElasticsearchIndexCreatedEventTest extends TestCase
{ public function testEvent(): void
{ $event =
new ElasticsearchIndexCreatedEvent('index',
$this->
createMock(AbstractElasticsearchDefinition::
class));
static::
assertSame('index',
$event->
getIndexName());
static::
assertInstanceOf(AbstractElasticsearchDefinition::
class,
$event->
getDefinition());
}}