예제 #1
0
 public function testSetGetGroup()
 {
     $this->assertFalse($this->model->getGroup());
     $storeGroup = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Store\\Model\\StoreManager')->getGroup();
     $this->model->setGroup($storeGroup);
     $actualResult = $this->model->getGroup();
     $this->assertSame($storeGroup, $actualResult);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function setGroup(\Magento\Store\Model\Group $group)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setGroup');
     if (!$pluginInfo) {
         return parent::setGroup($group);
     } else {
         return $this->___callPlugins('setGroup', func_get_args(), $pluginInfo);
     }
 }