/** * Return formatted config data for current section * * @param bool $full Simple config structure or not * @return array */ protected function _getConfig($full = true) { return $this->_configLoader->getConfigByPath($this->getSection(), $this->getScope(), $this->getScopeId(), $full); }
public function testGetConfigByPath() { $expected = array('section' => 10); $this->assertEquals($expected, $this->_model->getConfigByPath('section', 'scope', 'scopeId', false)); }