minor #32725 [Form] skip updated ChoiceType tests on older versions (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[Form] skip updated ChoiceType tests on older versions

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

3304e57233 skip updated ChoiceType tests on older versions
This commit is contained in:
Christian Flothmann 2019-07-24 21:02:50 +02:00
commit a86cdb5535
5 changed files with 12 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
*/
private $renderer;
protected static $supportedFeatureSetVersion = 403;
protected static $supportedFeatureSetVersion = 404;
protected function setUp()
{

View File

@ -30,7 +30,7 @@ class FormExtensionTableLayoutTest extends AbstractTableLayoutTest
*/
private $renderer;
protected static $supportedFeatureSetVersion = 403;
protected static $supportedFeatureSetVersion = 404;
protected function setUp()
{

View File

@ -30,7 +30,7 @@ class FormHelperDivLayoutTest extends AbstractDivLayoutTest
*/
protected $engine;
protected static $supportedFeatureSetVersion = 403;
protected static $supportedFeatureSetVersion = 404;
protected function getExtensions()
{

View File

@ -30,7 +30,7 @@ class FormHelperTableLayoutTest extends AbstractTableLayoutTest
*/
protected $engine;
protected static $supportedFeatureSetVersion = 403;
protected static $supportedFeatureSetVersion = 404;
public function testStartTagHasNoActionAttributeWhenActionIsEmpty()
{

View File

@ -726,6 +726,8 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase
public function testSingleChoiceWithPreferred()
{
$this->requiresFeatureSet(404);
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', [
'choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'],
'preferred_choices' => ['&b'],
@ -750,6 +752,8 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase
public function testSingleChoiceWithPreferredAndNoSeparator()
{
$this->requiresFeatureSet(404);
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', [
'choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'],
'preferred_choices' => ['&b'],
@ -773,6 +777,8 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase
public function testSingleChoiceWithPreferredAndBlankSeparator()
{
$this->requiresFeatureSet(404);
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', [
'choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'],
'preferred_choices' => ['&b'],
@ -797,6 +803,8 @@ abstract class AbstractLayoutTest extends FormIntegrationTestCase
public function testChoiceWithOnlyPreferred()
{
$this->requiresFeatureSet(404);
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', [
'choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'],
'preferred_choices' => ['&a', '&b'],