Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReindexStep.php
Go to the documentation of this file.
1 <?php
7 
9 use Magento\Mtf\TestStep\TestStepInterface;
10 
14 class ReindexStep implements TestStepInterface
15 {
19  private $indexer;
20 
26  private $indexerType;
27 
32  public function __construct(
33  Indexer $indexer,
34  array $indexerType = []
35  ) {
36  $this->indexer = $indexer;
37  $this->indexerType = $indexerType;
38  }
39 
46  public function run()
47  {
48  $this->indexer->reindex($this->indexerType);
49  }
50 }
__construct(Indexer $indexer, array $indexerType=[])
Definition: ReindexStep.php:32