spec\Sylius\Bundle\CoreBundle\Form\EventSubscriber\ChannelFormSubscriberSpec::it_appends_a_base_currency_to_currencies_when_it_is_not_there PHP Метод

it_appends_a_base_currency_to_currencies_when_it_is_not_there() публичный Метод

public it_appends_a_base_currency_to_currencies_when_it_is_not_there ( Symfony\Component\Form\FormEvent $event )
$event Symfony\Component\Form\FormEvent
    function it_appends_a_base_currency_to_currencies_when_it_is_not_there(FormEvent $event)
    {
        $event->getData()->willReturn(['defaultLocale' => 'en_US', 'locales' => ['en_US'], 'baseCurrency' => 'USD', 'currencies' => ['GBP']]);
        $event->setData(['defaultLocale' => 'en_US', 'locales' => ['en_US'], 'baseCurrency' => 'USD', 'currencies' => ['GBP', 'USD']])->shouldBeCalled();
        $this->preSubmit($event);
    }