/** * @Given /^(it) uses the "([^"]+)" locale by default$/ */ public function itUsesTheLocaleByDefault(ChannelInterface $channel, $localeName) { $locale = $this->provideLocale($this->localeConverter->convertNameToCode($localeName)); $this->localeManager->flush(); $channel->addLocale($locale); $channel->setDefaultLocale($locale); $this->channelManager->flush(); }