Skip to content

Commit 856de74

Browse files
[Bridge/Doctrine] Fix legacy tests
1 parent 0e65e70 commit 856de74

17 files changed

+68
-0
lines changed

Tests/Form/ChoiceList/AbstractEntityChoiceListCompositeIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
use Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeIntIdEntity;
1515

16+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
17+
return;
18+
}
19+
1620
/**
1721
* @author Bernhard Schussek <[email protected]>
1822
*/

Tests/Form/ChoiceList/AbstractEntityChoiceListSingleAssociationToIntIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity;
1616
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList;
1717

18+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
19+
return;
20+
}
21+
1822
/**
1923
* Test choices generated from an entity with a primary foreign key.
2024
*

Tests/Form/ChoiceList/AbstractEntityChoiceListSingleIntIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
1515

16+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
17+
return;
18+
}
19+
1620
/**
1721
* @author Bernhard Schussek <[email protected]>
1822
*/

Tests/Form/ChoiceList/AbstractEntityChoiceListSingleStringIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleStringIdEntity;
1515

16+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
17+
return;
18+
}
19+
1620
/**
1721
* @author Bernhard Schussek <[email protected]>
1822
*/

Tests/Form/ChoiceList/AbstractEntityChoiceListTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
use Doctrine\ORM\Tools\SchemaTool;
1717
use Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest;
1818

19+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
20+
return;
21+
}
22+
1923
/**
2024
* @author Bernhard Schussek <[email protected]>
2125
*/

Tests/Form/ChoiceList/LoadedEntityChoiceListCompositeIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
15+
return;
16+
}
17+
1418
/**
1519
* @author Bernhard Schussek <[email protected]>
1620
* @group legacy

Tests/Form/ChoiceList/LoadedEntityChoiceListSingleAssociationToIntIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
15+
return;
16+
}
17+
1418
/**
1519
* @author Premi Giorgio <[email protected]>
1620
* @author Bernhard Schussek <[email protected]>

Tests/Form/ChoiceList/LoadedEntityChoiceListSingleIntIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
15+
return;
16+
}
17+
1418
/**
1519
* @author Bernhard Schussek <[email protected]>
1620
* @group legacy

Tests/Form/ChoiceList/LoadedEntityChoiceListSingleStringIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
15+
return;
16+
}
17+
1418
/**
1519
* @author Bernhard Schussek <[email protected]>
1620
* @group legacy

Tests/Form/ChoiceList/UnloadedEntityChoiceListCompositeIdTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;
1313

14+
if (!class_exists('Symfony\Component\Form\Tests\Extension\Core\ChoiceList\AbstractChoiceListTest')) {
15+
return;
16+
}
17+
1418
/**
1519
* @author Bernhard Schussek <[email protected]>
1620
* @group legacy

0 commit comments

Comments
 (0)