public function testHasContainer() { $oldContainer = $this->_helper->getContainer(); $this->_helper->setContainer(null); $this->assertFalse($this->_helper->hasContainer()); $this->_helper->setContainer($oldContainer); }
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(); }