10 use Magento\Mtf\TestStep\TestStepFactory;
77 $this->stepFactory = $stepFactory;
93 Category $initialCategory,
94 Store $firstStore =
null,
99 $this->configData = $configData;
102 $firstStore->persist();
107 $this->stepFactory->create(
108 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
109 [
'configData' => $this->configData,
'flushCache' =>
true]
112 $this->indexer->setMode($indexersMode);
113 $this->indexer->reindex();
115 return parent::test(
$category, $initialCategory);
125 $this->stepFactory->create(
126 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
127 [
'configData' => $this->configData,
'rollback' =>
true,
'flushCache' =>
true]
129 $this->indexer->reindex();
test(Category $category, Category $initialCategory, Store $firstStore=null, Store $secondStore=null, $indexersMode=null, $configData=null)
__prepare(Cron $cron, Indexer $indexer, TestStepFactory $stepFactory)