Beispiel #1
0
 public function testSetIndentAndOverrideInRenderMenu()
 {
     $this->_helper->setIndent(8);
     $expected = array('indent4' => $this->_getExpected('menu/indent4.html'), 'indent8' => $this->_getExpected('menu/indent8.html'));
     $renderOptions = array('indent' => 4);
     $actual = array('indent4' => rtrim($this->_helper->renderMenu(null, $renderOptions), PHP_EOL), 'indent8' => rtrim($this->_helper->renderMenu(), PHP_EOL));
     $this->assertEquals($expected, $actual);
 }
 /**
  * @group ZF-8874
  */
 public function testRenderingWithInnerIndent()
 {
     $this->_helper->setIndent(4);
     // Inner indent = 0
     $this->_helper->setInnerIndent(0);
     $expected = $this->_getExpected('menu/innerindent0.html');
     $this->assertEquals($expected, $this->_helper->render($this->_nav1));
     // Inner indent = 4
     $this->_helper->setInnerIndent(4);
     $expected = $this->_getExpected('menu/innerindent4.html');
     $this->assertEquals($expected, $this->_helper->render($this->_nav1));
     // Inner indent = 8
     $this->_helper->setInnerIndent(8);
     $expected = $this->_getExpected('menu/innerindent8.html');
     $this->assertEquals($expected, $this->_helper->render($this->_nav1));
 }