PHP Класс spec\Sylius\Bundle\ResourceBundle\Form\EventSubscriber\AddCodeFormSubscriberSpec

Автор: Anna Walasek ([email protected])
Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_adds_code_with_label_sylius_ui_code_by_default ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_adds_code_with_specified_type ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_adds_code_with_specified_type_and_label ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_adds_code_with_type_text_by_default ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_implements_event_subscriber_interface ( )
it_is_initializable ( )
it_sets_code_as_disabled_when_resource_is_not_new ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_sets_code_as_enabled_when_resource_is_new ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
it_sets_code_as_enabled_when_there_is_no_resource ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form )
it_subscribes_to_event ( )
it_throws_exception_when_resource_does_not_implement_code_aware_interface ( Symfony\Component\Form\FormEvent $event, $object )

Описание методов

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

public it_adds_code_with_label_sylius_ui_code_by_default ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

public it_adds_code_with_specified_type ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

public it_adds_code_with_specified_type_and_label ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

public it_adds_code_with_type_text_by_default ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

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

public it_is_initializable ( )

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

public it_sets_code_as_disabled_when_resource_is_not_new ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

public it_sets_code_as_enabled_when_resource_is_new ( Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Sylius\Component\Resource\Model\CodeAwareInterface $resource )
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$resource Sylius\Component\Resource\Model\CodeAwareInterface

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

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

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

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

public it_throws_exception_when_resource_does_not_implement_code_aware_interface ( Symfony\Component\Form\FormEvent $event, $object )
$event Symfony\Component\Form\FormEvent