$registry =
new AdminSearchRegistry( ['promotion' =>
$this->indexer
],
$this->
createMock(Connection::
class),
$this->
createMock(MessageBusInterface::
class),
$this->
createMock(EventDispatcherInterface::
class),
$client,
$searchHelper,
[],
[] );
$registry->
iterate(new AdminIndexingBehavior(false
));
} /**
* @param array{index: array{number_of_shards: int|null, number_of_replicas: int|null, test?: int}} $constructorConfig
*
* @dataProvider providerCreateIndices
*/
public function testIterate(array
$constructorConfig): void
{ $this->indexer->
method('getName'
)->
willReturn('promotion-listing'
);