_eventManager = $eventManager ?: self::$_defaultEventManager; if (!$this->_eventManager instanceof \Magento\TestFramework\EventManager) { throw new \Magento\Framework\Exception\LocalizedException( __('Instance of the "Magento\TestFramework\EventManager" is expected.') ); } } /** * Handler for 'core_app_init_current_store_after' event, that converts it into 'initStoreAfter' * @param \Magento\Framework\Event\Observer $observer * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function execute(\Magento\Framework\Event\Observer $observer) { $this->_eventManager->fireEvent('initStoreAfter'); } }