예제 #1
0
파일: MenuTest.php 프로젝트: travisj/zf
 public function testSetBothDepts()
 {
     $this->_helper->setMinDepth(1)->setMaxDepth(2);
     $expected = $this->_getExpected('menu/bothdepts.html');
     $actual = $this->_helper->renderMenu();
     $this->assertEquals($expected, $actual);
 }
예제 #2
0
 /**
  * @group ZF-8951
  */
 public function testRenderingWithParentClassAndOnlyActiveBranchAndBothDepts()
 {
     $this->_helper->setRenderParentClass(true);
     $this->_helper->setOnlyActiveBranch(true);
     $expected = $this->_getExpected('menu/parentclass_onlyactivebranch_bothdepts.html');
     $actual = $this->_helper->setMinDepth(1)->setMaxDepth(2)->render();
     $this->assertEquals($expected, $actual);
 }