public function testCanRenderPartialFromServiceAlias() { $this->_helper->setPartial('bc.phtml'); $this->_helper->setServiceLocator($this->serviceManager); $returned = $this->_helper->renderPartial('Navigation'); $this->assertEquals($returned, $this->_getExpected('bc/partial.html')); }
public function testHelperEntryPointWithContainerStringParam() { $pm = new \Zend\View\HelperPluginManager(); $pm->setServiceLocator($this->serviceManager); $this->_helper->setServiceLocator($pm); $returned = $this->_helper->__invoke('nav1'); $this->assertEquals($this->_helper, $returned); $this->assertEquals($this->_nav1, $returned->getContainer()); }