Пример #1
0
 public function testDisablingContainerInjection()
 {
     // setup
     $this->_helper->setInjectContainer(false);
     $this->_helper->menu()->setContainer(null);
     $this->_helper->breadcrumbs()->setContainer(null);
     $this->_helper->setContainer($this->_nav2);
     // result
     $expected = array('menu' => '', 'breadcrumbs' => '');
     $actual = array('menu' => $this->_helper->render(), 'breadcrumbs' => $this->_helper->breadcrumbs()->render());
     $this->assertEquals($expected, $actual);
 }