public function testGetStorageWithSingleStoreMode() { $arguments = ['isSingleStoreAllowed' => false, 'currentStore' => null, 'scopeCode' => 'scope_code', 'scopeType' => 'scope_type']; $this->_factoryMock->expects($this->any())->method('get')->with($arguments)->will($this->returnValue($this->_storage)); $this->_storage->expects($this->once())->method('setIsSingleStoreModeAllowed')->with(false); $this->_model->setIsSingleStoreModeAllowed(false); }
/** * {@inheritdoc} */ public function setIsSingleStoreModeAllowed($value) { $this->decoratedStoreManager->setIsSingleStoreModeAllowed($value); $this->dispatchInitCurrentStoreAfterEvent(); }