/** * @throws \Migration\Exception * @return void */ protected function setUp() { $helper = \Migration\TestFramework\Helper::getInstance(); $this->objectManager = $helper->getObjectManager(); $this->objectManager->get('\\Migration\\Config')->init(dirname(__DIR__) . '/../_files/' . $helper->getFixturePrefix() . 'config.xml'); $this->tableName = 'url_rewrite_m2' . md5('url_rewrite_m2'); $logManager = $this->objectManager->create('\\Migration\\Logger\\Manager'); $this->logger = $this->objectManager->create('\\Migration\\Logger\\Logger'); $this->logger->pushHandler($this->objectManager->create('\\Migration\\Logger\\ConsoleHandler')); $this->config = $this->objectManager->get('\\Migration\\Config'); /** @var \Migration\Logger\Manager $logManager */ $logManager->process(\Migration\Logger\Manager::LOG_LEVEL_ERROR); \Migration\Logger\Logger::clearMessages(); }