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