PHP Class spec\Sylius\Bundle\CoreBundle\Form\EventSubscriber\AddBaseCurrencySubscriberSpec

Author: Anna Walasek ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Datei anzeigen Open project: sylius/sylius

Public Methods

Method Description
it_does_not_set_base_currency_as_enabled_when_channel_is_new ( Symfony\Component\Form\FormEvent $event, Sylius\Component\Core\Model\ChannelInterface $channel, Symfony\Component\Form\FormInterface $form )
it_implements_event_subscriber_interface ( )
it_is_initializable ( )
it_sets_base_currency_as_disabled_when_channel_is_not_new ( Symfony\Component\Form\FormEvent $event, Sylius\Component\Core\Model\ChannelInterface $channel, Symfony\Component\Form\FormInterface $form )
it_subscribes_to_event ( )
it_throws_unexpected_type_exception_when_resource_does_not_implements_channel_interface ( Symfony\Component\Form\FormEvent $event, $resource )

Method Details

it_does_not_set_base_currency_as_enabled_when_channel_is_new() public method

public it_does_not_set_base_currency_as_enabled_when_channel_is_new ( Symfony\Component\Form\FormEvent $event, Sylius\Component\Core\Model\ChannelInterface $channel, Symfony\Component\Form\FormInterface $form )
$event Symfony\Component\Form\FormEvent
$channel Sylius\Component\Core\Model\ChannelInterface
$form Symfony\Component\Form\FormInterface

it_implements_event_subscriber_interface() public method

it_is_initializable() public method

public it_is_initializable ( )

it_sets_base_currency_as_disabled_when_channel_is_not_new() public method

public it_sets_base_currency_as_disabled_when_channel_is_not_new ( Symfony\Component\Form\FormEvent $event, Sylius\Component\Core\Model\ChannelInterface $channel, Symfony\Component\Form\FormInterface $form )
$event Symfony\Component\Form\FormEvent
$channel Sylius\Component\Core\Model\ChannelInterface
$form Symfony\Component\Form\FormInterface

it_subscribes_to_event() public method

it_throws_unexpected_type_exception_when_resource_does_not_implements_channel_interface() public method

public it_throws_unexpected_type_exception_when_resource_does_not_implements_channel_interface ( Symfony\Component\Form\FormEvent $event, $resource )
$event Symfony\Component\Form\FormEvent