public function testGetStores() { $stores = $this->_model->getStores(); $this->assertEquals([1], array_keys($stores)); $this->assertInstanceOf('Magento\\Store\\Model\\Store', $stores[1]); $this->assertEquals(1, $stores[1]->getId()); }
/** * {@inheritdoc} */ public function getStores() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getStores'); if (!$pluginInfo) { return parent::getStores(); } else { return $this->___callPlugins('getStores', func_get_args(), $pluginInfo); } }