public function testConstructorDefaultEventManager() { \Magento\TestFramework\Event\Magento::setDefaultEventManager($this->_eventManager); $this->_object = new \Magento\TestFramework\Event\Magento(); $this->testInitStoreAfter(); }
/** * Activate custom DocBlock annotations along with more-or-less permanent workarounds */ public function registerAnnotations(\Magento\TestFramework\Application $application) { $eventManager = new \Magento\TestFramework\EventManager($this->_getSubscribers($application)); \Magento\TestFramework\Event\PhpUnit::setDefaultEventManager($eventManager); \Magento\TestFramework\Event\Magento::setDefaultEventManager($eventManager); }