Index: tests/Zend/View/Helper/Navigation/_files/expected/menu/accesskey.html =================================================================== --- tests/Zend/View/Helper/Navigation/_files/expected/menu/accesskey.html (revision 0) +++ tests/Zend/View/Helper/Navigation/_files/expected/menu/accesskey.html (revision 0) @@ -0,0 +1,16 @@ + \ No newline at end of file Index: tests/Zend/View/Helper/Navigation/_files/navigation.xml =================================================================== --- tests/Zend/View/Helper/Navigation/_files/navigation.xml (revision 24182) +++ tests/Zend/View/Helper/Navigation/_files/navigation.xml (working copy) @@ -208,5 +208,37 @@ + + + + + + home + home + + + + + contact + 1 + + + + + contact/privacy + privacy + + + + + contact/imprint + imprint + + + + + + + \ No newline at end of file Index: tests/Zend/View/Helper/Navigation/TestAbstract.php =================================================================== --- tests/Zend/View/Helper/Navigation/TestAbstract.php (revision 24182) +++ tests/Zend/View/Helper/Navigation/TestAbstract.php (working copy) @@ -81,6 +81,13 @@ */ protected $_nav2; + /** + * The third container in the config file (_files/navigation.xml) + * + * @var Zend_Navigation + */ + protected $_nav3; + private $_oldControllerDir; /** @@ -98,6 +105,7 @@ // setup containers from config $this->_nav1 = new Zend_Navigation($config->get('nav_test1')); $this->_nav2 = new Zend_Navigation($config->get('nav_test2')); + $this->_nav3 = new Zend_Navigation($config->get('nav_test3')); // setup view $view = new Zend_View(); Index: tests/Zend/View/Helper/Navigation/MenuTest.php =================================================================== --- tests/Zend/View/Helper/Navigation/MenuTest.php (revision 24182) +++ tests/Zend/View/Helper/Navigation/MenuTest.php (working copy) @@ -526,4 +526,18 @@ $this->assertEquals($expected, $actual); } + + /** + * @group ZF-9746 + */ + public function testRenderingWithAccesskey() + { + $this->_nav3->findOneBy('id', 'home')->setAccesskey('H'); + $this->_nav3->findOneBy('uri', 'contact')->setAccesskey('c'); + $this->_nav3->findOneBy('id', 'imprint')->setAccesskey('i'); + + $expected = $this->_getExpected('menu/accesskey.html'); + + $this->assertEquals($expected, $this->_helper->render($this->_nav3)); + } }