Exemplo n.º 1
0
 /**
  * Constructor stores the first valid listener instance and uses it further if null is passed
  *
  * @param Magento_Test_Listener $listener
  */
 public function __construct($listener = null)
 {
     if (!self::$_listenerDefault) {
         self::$_listenerDefault = $listener;
     }
     $this->_listener = $listener ? $listener : self::$_listenerDefault;
 }
Exemplo n.º 2
0
 /**
  * @magentoConfigFixture web/unsecure/base_url http://example.com/
  */
 public function testInitFrontControllerBefore()
 {
     $this->_annotation->expects($this->at(0))->method('_getConfigValue')->with('web/unsecure/base_url')->will($this->returnValue('http://localhost/'));
     $this->_annotation->expects($this->at(1))->method('_setConfigValue')->with('web/unsecure/base_url', 'http://example.com/');
     $this->_annotation->initFrontControllerBefore();
 }