public function testTest() { $reindexCommand = Bootstrap::getObjectManager()->get('Magento\\Indexer\\Console\\Command\\IndexerReindexCommand'); $parser = Bootstrap::getObjectManager()->get('Magento\\Framework\\Xml\\Parser'); $itfApplication = \Magento\TestFramework\Helper\Bootstrap::getInstance()->getBootstrap()->getApplication(); $model = new FixtureModel($reindexCommand, $parser, $itfApplication->getInitParams()); $model->loadConfig(__DIR__ . '/_files/small.xml'); $model->initObjectManager(); foreach ($model->loadFixtures()->getFixtures() as $fixture) { $fixture->execute(); } }
public function testTest() { $reindexCommand = Bootstrap::getObjectManager()->get('Magento\\Indexer\\Console\\Command\\IndexerReindexCommand'); $parser = Bootstrap::getObjectManager()->get('Magento\\Framework\\Xml\\Parser'); $itfApplication = \Magento\TestFramework\Helper\Bootstrap::getInstance()->getBootstrap()->getApplication(); $model = new FixtureModel($reindexCommand, $parser, $itfApplication->getInitParams()); $model->loadConfig(__DIR__ . '/_files/small.xml'); $model->initObjectManager(); foreach ($model->loadFixtures()->getFixtures() as $fixture) { //TODO: OrderFixture execution must be unskiped after implementation MAGETWO-47449 if ($fixture->getPriority() == '135') { continue; } $fixture->execute(); } }