Example #1
0
 /**
  * Check whether element should be displayed
  *
  * @return bool
  */
 public function isVisible()
 {
     if (!$this->isAllowed()) {
         return false;
     }
     return parent::isVisible();
 }
Example #2
0
 public function testIsVisibleReturnsFalseIfElementHasNoChildrenAndFrontendModel()
 {
     $this->_applicationMock->expects($this->once())->method('isSingleStoreMode')->will($this->returnValue(true));
     $this->assertFalse($this->_model->isVisible());
 }