Esempio n. 1
0
 public function testAutoloadContainerFromRegistry()
 {
     $oldReg = null;
     if (Zend_Registry::isRegistered(self::REGISTRY_KEY)) {
         $oldReg = Zend_Registry::get(self::REGISTRY_KEY);
     }
     Zend_Registry::set(self::REGISTRY_KEY, $this->_nav1);
     $this->_helper->setContainer(null);
     $expected = $this->_getExpected('sitemap/default1.xml');
     $actual = $this->_helper->render();
     Zend_Registry::set(self::REGISTRY_KEY, $oldReg);
     $this->assertEquals($expected, $expected);
 }
Esempio n. 2
0
 public function testNullingOutNavigation()
 {
     $this->_helper->setContainer();
     $this->assertEquals(0, count($this->_helper->getContainer()));
 }