Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setIsSingleStoreModeAllowed($value)
 {
     $this->decoratedStoreManager->setIsSingleStoreModeAllowed($value);
     $this->dispatchInitCurrentStoreAfterEvent();
 }