예제 #1
0
 public function testGetGroups()
 {
     $groups = $this->_model->getGroups();
     $this->assertEquals(array(1), array_keys($groups));
     $this->assertInstanceOf('Magento\\Store\\Model\\Group', $groups[1]);
     $this->assertEquals(1, $groups[1]->getId());
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getGroups()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getGroups');
     if (!$pluginInfo) {
         return parent::getGroups();
     } else {
         return $this->___callPlugins('getGroups', func_get_args(), $pluginInfo);
     }
 }
예제 #3
0
 /**
  * @param Website $website
  * @return Group[]
  */
 public function getGroupCollection(Website $website)
 {
     return $website->getGroups();
 }