Skip to content

Commit 0f9e2be

Browse files
committed
allow to skip tests based on the supported version
Writing tests for Form related features in the Doctrine and Twig bridges as well as the FrameworkBundle is a pain as soon as these tests are run with more recent versions of the Form component. This is due to the fact that our tests in the bridges and bundle extend test cases from the component. The tests in the component are expanded with every feature that gets added there. However, these new features are not present in the other packages in older version and we thus need to be able to skip them somehow.
1 parent 15e914c commit 0f9e2be

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Tests/Extension/AbstractBootstrap3LayoutTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
1818
{
19+
protected static $supportedFeatureSetVersion = 304;
20+
1921
public function testLabelOnForm()
2022
{
2123
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\DateType');

Tests/Extension/FormExtensionDivLayoutTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class FormExtensionDivLayoutTest extends AbstractDivLayoutTest
3131
*/
3232
private $renderer;
3333

34+
protected static $supportedFeatureSetVersion = 304;
35+
3436
protected function setUp()
3537
{
3638
parent::setUp();

Tests/Extension/FormExtensionTableLayoutTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class FormExtensionTableLayoutTest extends AbstractTableLayoutTest
3030
*/
3131
private $renderer;
3232

33+
protected static $supportedFeatureSetVersion = 304;
34+
3335
protected function setUp()
3436
{
3537
parent::setUp();

0 commit comments

Comments
 (0)