示例#1
0
文件: MenuTest.php 项目: travisj/zf
 public function testRenderSubMenuShouldOverrideOptions()
 {
     $this->_helper->setOnlyActiveBranch(false)->setMinDepth(1)->setMaxDepth(2)->setRenderParents(true);
     $expected = $this->_getExpected('menu/onlyactivebranch_noparents.html');
     $actual = $this->_helper->renderSubMenu();
     $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);
 }