/** * @Given /^(it) uses the "([^"]+)" currency by default$/ */ public function itUsesTheCurrencyByDefault(ChannelInterface $channel, $currencyCode) { $currency = $this->provideCurrency($currencyCode); $currency->setExchangeRate(1.0); $this->currencyManager->flush(); $channel->addCurrency($currency); $channel->setDefaultCurrency($currency); $this->channelManager->flush(); }