Ejemplo n.º 1
0
 /**
  * It should be possible to set CSS class for the UL element
  *
  */
 public function testShouldBePossibleToSetUlCssClass()
 {
     $old = $this->_helper->getUlClass();
     $this->_helper->setUlClass('My_Nav');
     $expected = file_get_contents($this->_files . '/menu_css.html');
     $this->assertEquals($expected, $this->_helper->renderMenu($this->_nav2));
     $this->_helper->setUlClass($old);
 }
Ejemplo n.º 2
0
 /**
  * It should be possible to disable translation even if the helper has a
  * translator
  *
  */
 public function testShouldBeAbleToDisableTranslation()
 {
     $translator = $this->_getTranslator();
     $this->_helper->setTranslator($translator);
     $this->_helper->setUseTranslator(false);
     $expected = file_get_contents($this->_files . '/menu.html');
     $this->assertEquals($expected, $this->_helper->toString());
     $this->_helper->setTranslator(null);
 }