Skip to content

Commit b255dfe

Browse files
minor #16739 [Bridge/Doctrine] Fix legacy tests (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [Bridge/Doctrine] Fix legacy tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | no fatal error anymore | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 7d92372 [Bridge/Doctrine] Fix legacy tests
2 parents 0dd72cd + 7d92372 commit b255dfe

17 files changed

+68
-0
lines changed

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1822
*/

src/Symfony/Bridge/Doctrine/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
*

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1822
*/

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1822
*/

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
2125
*/

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1620
* @group legacy

src/Symfony/Bridge/Doctrine/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 <giosh94mhz@gmail.com>
1620
* @author Bernhard Schussek <bschussek@gmail.com>

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1620
* @group legacy

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1620
* @group legacy

src/Symfony/Bridge/Doctrine/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 <bschussek@gmail.com>
1620
* @group legacy

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy