public function testIsSingleStoreModeWhenSingleStoreModeDisabledAndHasSingleStore()
 {
     $this->_configMock->expects($this->once())->method('getValue')->with(\Magento\Store\Model\StoreManager::XML_PATH_SINGLE_STORE_MODE_ENABLED, \Magento\Framework\Store\ScopeInterface::SCOPE_STORE)->will($this->returnValue(false));
     $this->_storage->expects($this->once())->method('hasSingleStore')->will($this->returnValue(true));
     $this->_factoryMock->expects($this->any())->method('get')->will($this->returnValue($this->_storage));
     $this->assertFalse($this->_model->isSingleStoreMode());
 }
 /**
  * {@inheritdoc}
  */
 public function isSingleStoreMode()
 {
     $result = $this->decoratedStoreManager->isSingleStoreMode();
     $this->dispatchInitCurrentStoreAfterEvent();
     return $result;
 }