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:
commit
a86cdb5535
@ -31,7 +31,7 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
|
||||
*/
|
||||
private $renderer;
|
||||
|
||||
protected static $supportedFeatureSetVersion = 403;
|
||||
protected static $supportedFeatureSetVersion = 404;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ class FormExtensionTableLayoutTest extends AbstractTableLayoutTest
|
||||
*/
|
||||
private $renderer;
|
||||
|
||||
protected static $supportedFeatureSetVersion = 403;
|
||||
protected static $supportedFeatureSetVersion = 404;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ class FormHelperDivLayoutTest extends AbstractDivLayoutTest
|
||||
*/
|
||||
protected $engine;
|
||||
|
||||
protected static $supportedFeatureSetVersion = 403;
|
||||
protected static $supportedFeatureSetVersion = 404;
|
||||
|
||||
protected function getExtensions()
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ class FormHelperTableLayoutTest extends AbstractTableLayoutTest
|
||||
*/
|
||||
protected $engine;
|
||||
|
||||
protected static $supportedFeatureSetVersion = 403;
|
||||
protected static $supportedFeatureSetVersion = 404;
|
||||
|
||||
public function testStartTagHasNoActionAttributeWhenActionIsEmpty()
|
||||
{
|
||||
|
@ -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'],
|
||||
|
Reference in New Issue
Block a user