Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 public function testGetConfigByPath()
 {
     $expected = array('section' => 10);
     $this->assertEquals($expected, $this->_model->getConfigByPath('section', 'scope', 'scopeId', false));
 }