Ejemplo n.º 1
0
 public function testGetStorageWithCurrentStore()
 {
     $arguments = array('isSingleStoreAllowed' => true, 'currentStore' => 'current_store_code', '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('setCurrentStore')->with('current_store_code');
     $this->_model->setCurrentStore('current_store_code');
 }
Ejemplo n.º 2
0
 public function abandoned()
 {
     foreach ($this->_storeManager->getStores() as $storeId => $val) {
         $this->_storeManager->setCurrentStore($storeId);
         if ($this->_helper->getConfig(\Ebizmarts\AbandonedCart\Model\Config::ACTIVE)) {
             $this->_proccess($storeId);
         }
     }
 }
Ejemplo n.º 3
0
 /**
  *
  */
 public function process()
 {
     foreach ($this->_storeManager->getStores() as $storeId => $val) {
         $this->_storeManager->setCurrentStore($storeId);
         if ($this->_helper->getConfig(Config::ACTIVE, $storeId)) {
             $this->_processStore($storeId);
         }
     }
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function setCurrentStore($store)
 {
     $this->decoratedStoreManager->setCurrentStore($store);
     $this->dispatchInitCurrentStoreAfterEvent();
 }