Example #1
0
 /**
  * Get observers by event name
  *
  * @param string $eventName
  * @return null|array|mixed
  */
 public function getObservers($eventName)
 {
     return $this->_dataContainer->get($eventName, array());
 }
Example #2
0
 public function testGet()
 {
     $this->_appStateMock->expects($this->once())->method('isInstalled')->will($this->returnValue(false));
     $this->_configScopeMock->expects($this->once())->method('getCurrentScope')->will($this->returnValue('value'));
     $this->assertEquals(null, $this->_model->get());
 }