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

Author: Łukasz Chruściel ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
it_adds_user_form_type_and_create_user_check ( Symfony\Component\Form\FormEvent $event, Form $form )
it_does_not_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer, Sylius\Component\User\Model\UserInterface $user )
it_does_not_remove_user_form_type_if_users_data_is_submitted_and_user_data_is_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer, Sylius\Component\User\Model\UserInterface $user )
it_does_not_remove_user_form_type_if_users_data_is_submitted_and_user_is_not_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer )
it_is_event_subscriber_instance ( )
it_is_initializable ( )
it_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_not_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer )
it_removes_user_form_type_by_default ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer )
it_throws_invalid_argument_exception_when_forms_normalized_data_does_not_implement_user_aware_interface ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserInterface $user )
let ( )

Method Details

it_adds_user_form_type_and_create_user_check() public méthode

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_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_created() public méthode

public it_does_not_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer, Sylius\Component\User\Model\UserInterface $user )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form
$customer Sylius\Component\User\Model\UserAwareInterface
$user Sylius\Component\User\Model\UserInterface

it_does_not_remove_user_form_type_if_users_data_is_submitted_and_user_data_is_created() public méthode

public it_does_not_remove_user_form_type_if_users_data_is_submitted_and_user_data_is_created ( Symfony\Component\Form\FormEvent $event, Form $form, Sylius\Component\User\Model\UserAwareInterface $customer, Sylius\Component\User\Model\UserInterface $user )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\Form
$customer Sylius\Component\User\Model\UserAwareInterface
$user Sylius\Component\User\Model\UserInterface

it_does_not_remove_user_form_type_if_users_data_is_submitted_and_user_is_not_created() public méthode

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

it_is_event_subscriber_instance() public méthode

it_is_initializable() public méthode

public it_is_initializable ( )

it_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_not_created() public méthode

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

it_removes_user_form_type_by_default() public méthode

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

it_throws_invalid_argument_exception_when_forms_normalized_data_does_not_implement_user_aware_interface() public méthode

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

let() public méthode

public let ( )