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'); }
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); } } }
/** * */ public function process() { foreach ($this->_storeManager->getStores() as $storeId => $val) { $this->_storeManager->setCurrentStore($storeId); if ($this->_helper->getConfig(Config::ACTIVE, $storeId)) { $this->_processStore($storeId); } } }
/** * {@inheritdoc} */ public function setCurrentStore($store) { $this->decoratedStoreManager->setCurrentStore($store); $this->dispatchInitCurrentStoreAfterEvent(); }