/**
  * @Given /^(that channel) allows to shop using the "([^"]+)" locale$/
  * @Given /^(that channel) allows to shop using "([^"]+)" and "([^"]+)" locales$/
  * @Given /^(that channel) allows to shop using "([^"]+)", "([^"]+)" and "([^"]+)" locales$/
  */
 public function thatChannelAllowsToShopUsingAndLocales(ChannelInterface $channel, ...$localesNames)
 {
     foreach ($channel->getLocales() as $locale) {
         $channel->removeLocale($locale);
     }
     foreach ($localesNames as $localeName) {
         $channel->addLocale($this->provideLocale($this->localeConverter->convertNameToCode($localeName)));
     }
     $this->channelManager->flush();
 }