Skip to content

Commit 182961d

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 e8eccbb commit 182961d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Tests/Form/Type/EntityTypePerformanceTest.php

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

33+
protected static $supportedFeatureSetVersion = 304;
34+
3335
protected function getExtensions()
3436
{
3537
$manager = $this->getMockBuilder('Doctrine\Common\Persistence\ManagerRegistry')->getMock();

Tests/Form/Type/EntityTypeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class EntityTypeTest extends BaseTypeTest
5757
*/
5858
private $emRegistry;
5959

60+
protected static $supportedFeatureSetVersion = 304;
61+
6062
protected function setUp()
6163
{
6264
$this->em = DoctrineTestHelper::createTestEntityManager();

0 commit comments

Comments
 (0)