/** * {@inheritdoc} */ public function getCurrentStore() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCurrentStore'); if (!$pluginInfo) { return parent::getCurrentStore(); } else { return $this->___callPlugins('getCurrentStore', func_get_args(), $pluginInfo); } }
public function testGetCurrentStore() { $this->assertSame(\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\StoreManagerInterface')->getStore(), $this->_model->getCurrentStore()); }