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