コード例 #1
0
 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());
 }
コード例 #2
0
 /**
  * {@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);
     }
 }