Пример #1
0
 /**
  * Create store group.
  *
  * @param Website $website
  * @param int $websiteId
  * @return void
  */
 protected function createStoreGroup(Website $website, $websiteId)
 {
     $groupId = $website->getDefaultGroupId();
     $website = $this->prepareWebsite($website, $websiteId);
     $storeGroup = $this->fixtureFactory->createByCode('storeGroup', ['dataSet' => $groupId['dataSet'], 'data' => ['website_id' => ['website' => $website]]]);
     $storeGroup->persist();
 }