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

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

Public Methods

Method Description
it_adds_user_form_type_and_create_user_check ( Symfony\Component\Form\FormEvent $event, Form $form )
it_does_not_replace_user_form_by_new_user_form_when_create_user_check_is_checked ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserAwareInterface $customer )
it_is_event_subscriber_instance ( )
it_is_initializable ( )
it_replaces_user_form_by_new_user_form_when_create_user_check_is_not_checked ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserAwareInterface $customer )
it_throws_invalid_argument_exception_when_data_does_not_implement_user_aware_interface ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserInterface $user )
let ( )

Method Details

it_adds_user_form_type_and_create_user_check() public method

public it_adds_user_form_type_and_create_user_check ( Symfony\Component\Form\FormEvent $event, Form $form )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form

it_does_not_replace_user_form_by_new_user_form_when_create_user_check_is_checked() public method

public it_does_not_replace_user_form_by_new_user_form_when_create_user_check_is_checked ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserAwareInterface $customer )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form
$createUserCheckForm Symfony\Component\Form\Form
$customer Sylius\Component\User\Model\UserAwareInterface

it_is_event_subscriber_instance() public method

it_is_initializable() public method

public it_is_initializable ( )

it_replaces_user_form_by_new_user_form_when_create_user_check_is_not_checked() public method

public it_replaces_user_form_by_new_user_form_when_create_user_check_is_not_checked ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserAwareInterface $customer )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form
$createUserCheckForm Symfony\Component\Form\Form
$customer Sylius\Component\User\Model\UserAwareInterface

it_throws_invalid_argument_exception_when_data_does_not_implement_user_aware_interface() public method

public it_throws_invalid_argument_exception_when_data_does_not_implement_user_aware_interface ( Symfony\Component\Form\FormEvent $event, Form $form, Form $createUserCheckForm, Sylius\Component\User\Model\UserInterface $user )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form
$createUserCheckForm Symfony\Component\Form\Form
$user Sylius\Component\User\Model\UserInterface

let() public method

public let ( )