Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
merk committed Feb 14, 2017
1 parent b501a63 commit 2c70665
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Form/Util/LegacyFormUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class LegacyFormUtil
'Infinite\FormBundle\Tests\CheckboxGrid\Type\SalesmanType' => 'infinite_form_test_salesman',
'Infinite\FormBundle\Tests\PolyCollection\Type\AbstractType' => 'abstract_type',
'Infinite\FormBundle\Tests\PolyCollection\Type\AbstractTypeIdType' => 'abstract_type_id_type',
'Infinite\FormBundle\Tests\PolyCollection\Type\FirstSpecificOptionsType' => 'first_type_specific',
'Infinite\FormBundle\Tests\PolyCollection\Type\FirstType' => 'first_type',
'Infinite\FormBundle\Tests\PolyCollection\Type\FirstTypeIdType' => 'first_type_id_type',
'Infinite\FormBundle\Tests\PolyCollection\Type\SecondType' => 'second_type',
Expand Down
2 changes: 2 additions & 0 deletions Tests/PolyCollection/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Infinite\FormBundle\Form\Type\PolyCollectionType;
use Infinite\FormBundle\Tests\PolyCollection\Type\AbstractType;
use Infinite\FormBundle\Tests\PolyCollection\Type\AbstractTypeIdType;
use Infinite\FormBundle\Tests\PolyCollection\Type\FirstSpecificOptionsType;
use Infinite\FormBundle\Tests\PolyCollection\Type\FirstType;
use Infinite\FormBundle\Tests\PolyCollection\Type\FirstTypeIdType;
use Infinite\FormBundle\Tests\PolyCollection\Type\FourthType;
Expand All @@ -31,6 +32,7 @@ protected function loadTypes()
new PolyCollectionType(),
new AbstractType(),
new AbstractTypeIdType(),
new FirstSpecificOptionsType(),
new FirstType(),
new FirstTypeIdType(),
new SecondType(),
Expand Down
7 changes: 6 additions & 1 deletion Tests/PolyCollection/Type/FirstSpecificOptionsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ class FirstSpecificOptionsType extends FirstType
public function configureOptions(OptionsResolver $resolver)
{
parent::configureOptions($resolver);
$resolver->setRequired('first_option');
$resolver->setRequired(['first_option']);
}

public function getBlockPrefix()
{
return 'first_type_specific';
}
}

0 comments on commit 2c70665

Please sign in to comment.