You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test the submission of a form within a Live Component (with the above ``submitForm`` helper) containing a ``LiveCollectionType``, you first need to programmatically add the desired number of entries to the form, replicating the action of clicking the "Add" button.
3785
+
3786
+
So, if the following are the forms used::
3787
+
3788
+
use Symfony\UX\LiveComponent\Form\Type\LiveCollectionType;
3789
+
3790
+
// Parent FormType used in the Live Component
3791
+
class LiveCollectionFormType extends AbstractType
3792
+
{
3793
+
public function buildForm(FormBuilderInterface $builder, array $options): void
0 commit comments