/** * {@inheritdoc} */ public function getIsNeedToDisplaySideBar() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getIsNeedToDisplaySideBar'); if (!$pluginInfo) { return parent::getIsNeedToDisplaySideBar(); } else { return $this->___callPlugins('getIsNeedToDisplaySideBar', func_get_args(), $pluginInfo); } }
public function testGetIsNeedToDisplaySideBar() { $this->scopeConfigMock->expects($this->once())->method('getValue')->with(\Magento\Checkout\Block\Cart\Sidebar::XML_PATH_CHECKOUT_SIDEBAR_DISPLAY, \Magento\Store\Model\ScopeInterface::SCOPE_STORE)->willReturn(true); $this->assertTrue($this->model->getIsNeedToDisplaySideBar()); }