Esempio n. 1
0
 public function get($key)
 {
     if ($val = parent::get($key)) {
         return $val;
     }
     return Flight::has($key) ? Flight::get($key) : null;
 }
Esempio n. 2
0
 public function testGetTemplateDataShouldCorrectlyMergeTheNavigation()
 {
     Config::$defaults = array('pocomd.navigation' => array('Title' => 'My Title', 'Url' => 'http://foo.bar'), 'template.data' => array('Foo' => 'bar'));
     $this->assertEquals(array('Navigation' => array('Title' => 'My Title', 'Url' => 'http://foo.bar'), 'Foo' => 'bar'), $this->config->getTemplateData());
 }