public function testGetSubscribedEvents(): void
{ $events = AdminSearchRegistry::
getSubscribedEvents();
static::
assertArrayHasKey(EntityWrittenContainerEvent::
class,
$events);
} public function testGetIndexers(): void
{ $searchHelper =
new AdminElasticsearchHelper(true, false, 'sw-admin'
);
$registry =
new AdminSearchRegistry( ['promotion' =>
$this->indexer
],
$this->
createMock(Connection::
class),
$this->
createMock(MessageBusInterface::
class),
$this->
createMock(EventDispatcherInterface::
class),
$this->
createMock(Client::
class),
$searchHelper,
[],
[] );
$indexers =
$registry->
getIndexers();