1 | <?php |
||
16 | class FormControllerSpec extends ObjectBehavior |
||
17 | { |
||
18 | /** |
||
19 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
20 | * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating |
||
21 | */ |
||
22 | function let($manager, $templating, $dispatcher) |
||
30 | |||
31 | /** |
||
32 | * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher |
||
33 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
34 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
35 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\GenericFormElement $element |
||
36 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
37 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\Context\FormElementContext $context |
||
38 | * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating |
||
39 | */ |
||
40 | function it_dispatch_event_if_displatcher_present( |
||
64 | |||
65 | /** |
||
66 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\GenericFormElement $element |
||
67 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
68 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
69 | */ |
||
70 | function it_throw_exception_when_cant_find_context_builder_that_supports_admin_element( |
||
81 | |||
82 | /** |
||
83 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
84 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
85 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\GenericFormElement $element |
||
86 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
87 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\Context\FormElementContext $context |
||
88 | * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating |
||
89 | */ |
||
90 | function it_render_default_template_in_form_action( |
||
106 | |||
107 | /** |
||
108 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
109 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\GenericFormElement $element |
||
110 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\Context\FormElementContext $context |
||
111 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
112 | * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating |
||
113 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
114 | */ |
||
115 | function it_render_template_from_element_in_form_action( |
||
132 | |||
133 | /** |
||
134 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextManager $manager |
||
135 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\GenericFormElement $element |
||
136 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\Context\FormElementContext $context |
||
137 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
138 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
139 | */ |
||
140 | function it_return_response_from_context_in_form_action( |
||
152 | } |
||
153 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.