Ejemplo n.º 1
0
 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'));
 }
Ejemplo n.º 2
0
 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());
 }