@@ -365,14 +365,14 @@ public function testPrototypeSetNotRequired()
365
365
366
366
public function testPrototypeSetNotRequiredIfParentNotRequired ()
367
367
{
368
- $ child = $ this ->factory ->create ('collection ' , array (), array (
369
- 'type ' => 'file ' ,
368
+ $ child = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\CollectionType ' , array (), array (
369
+ 'entry_type ' => 'Symfony\Component\Form\Extension\Core\Type\FileType ' ,
370
370
'allow_add ' => true ,
371
371
'prototype ' => true ,
372
372
'prototype_name ' => '__test__ ' ,
373
373
));
374
374
375
- $ parent = $ this ->factory ->create ('form ' , array (), array (
375
+ $ parent = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , array (), array (
376
376
'required ' => false ,
377
377
));
378
378
@@ -384,17 +384,17 @@ public function testPrototypeSetNotRequiredIfParentNotRequired()
384
384
385
385
public function testPrototypeNotOverrideRequiredByEntryOptionsInFavorOfParent ()
386
386
{
387
- $ child = $ this ->factory ->create ('collection ' , array (), array (
388
- 'type ' => 'file ' ,
387
+ $ child = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\CollectionType ' , array (), array (
388
+ 'entry_type ' => 'Symfony\Component\Form\Extension\Core\Type\FileType ' ,
389
389
'allow_add ' => true ,
390
390
'prototype ' => true ,
391
391
'prototype_name ' => '__test__ ' ,
392
- 'options ' => array (
392
+ 'entry_options ' => array (
393
393
'required ' => true ,
394
394
),
395
395
));
396
396
397
- $ parent = $ this ->factory ->create ('form ' , array (), array (
397
+ $ parent = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , array (), array (
398
398
'required ' => false ,
399
399
));
400
400
0 commit comments