Пример #1
0
 public function testGetDefaultGroup()
 {
     $defaultGroup = $this->_model->getDefaultGroup();
     $this->assertInstanceOf('Magento\\Store\\Model\\Group', $defaultGroup);
     $this->assertEquals(1, $defaultGroup->getId());
     $this->_model->setDefaultGroupId(null);
     $this->assertFalse($this->_model->getDefaultGroup());
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultGroupId($defaultGroupId)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setDefaultGroupId');
     if (!$pluginInfo) {
         return parent::setDefaultGroupId($defaultGroupId);
     } else {
         return $this->___callPlugins('setDefaultGroupId', func_get_args(), $pluginInfo);
     }
 }