/** * Get observers by event name * * @param string $eventName * @return null|array|mixed */ public function getObservers($eventName) { return $this->_dataContainer->get($eventName, array()); }
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()); }