Exemplo n.º 1
0
 public function testHasContainer()
 {
     $oldContainer = $this->_helper->getContainer();
     $this->_helper->setContainer(null);
     $this->assertFalse($this->_helper->hasContainer());
     $this->_helper->setContainer($oldContainer);
 }
Exemplo n.º 2
0
 public function getContainer()
 {
     if (null === $this->_container) {
         if (!Zend_Registry::isRegistered('Zend_Navigation')) {
             $this->_container = new Zend_Navigation(Centurion_Db::getSingleton('core/navigation')->getCache()->toNavigation());
         }
     }
     return parent::getContainer();
 }