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()); }
/** * {@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); } }
/** * @param Website $website * @return Group[] */ public function getGroupCollection(Website $website) { return $website->getGroups(); }