Beispiel #1
0
 public function testMenuTabPanel()
 {
     $child = $this->createMenuItem(null, ['uri' => 'test', 'widgetAcl' => 'testAcl']);
     $child->expects($this->once())->method('isDisplayed')->will($this->returnValue(true));
     $acl = [['testAcl', null, true]];
     $parent = $this->createMenuItem($child);
     $this->menuExtension->expects($this->once())->method('getMenu')->will($this->returnValue($parent));
     $this->environment->expects($this->once())->method('render');
     $this->securityFacade->expects($this->any())->method('isGranted')->will($this->returnValueMap($acl));
     $this->extension->menuTabPanel($this->environment, []);
 }