Esempio n. 1
0
 public function testIsVisibleProceedsWithVisibilityCheckIfSectionIsAllowed()
 {
     $this->_authorizationMock->expects($this->any())->method('isAllowed')->will($this->returnValue(true));
     $this->_applicationMock->expects($this->once())->method('isSingleStoreMode')->will($this->returnValue(true));
     $this->_model->setData(array('resource' => 'Mage_Adminhtml::all'), 'scope');
     $this->_model->isVisible();
 }