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

Author: Łukasz Chruściel ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Exibir arquivo 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_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 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_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_created() public method

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 method

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 method

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 method

it_is_initializable() public method

public it_is_initializable ( )

it_remove_user_form_type_if_users_data_is_not_submitted_and_user_is_not_created() public method

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 method

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 method

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 method

public let ( )