/** * 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); }
public function testInitStoreAfter() { $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter'); $this->_object->execute($this->getMock('\\Magento\\Framework\\Event\\Observer')); }
public function testInitStoreAfter() { $this->_eventManager->expects($this->once())->method('fireEvent')->with('initStoreAfter'); $this->_object->initStoreAfter(); }