$index =
new AdminSearchRegistry( ['promotion' =>
$this->indexer
],
$this->
createMock(Connection::
class),
$this->
createMock(MessageBusInterface::
class),
$this->
createMock(EventDispatcherInterface::
class),
$client,
$searchHelper,
[],
[] );
$index->
__invoke(new AdminSearchIndexingMessage( 'promotion',
'promotion',
$indices,
['c1a28776116d4431a2208eb2960ec340'
] ));
} public function testHandleThrowErrors(): void
{ $this->indexer->
method('getName'
)->
willReturn('promotion-listing'
);
$this->indexer->
method('getEntity'
)->
willReturn('promotion'
);