Skip to content

Commit e766363

Browse files
committed
minor symfony#13160 Replace usages of the deprecated TypeTestCase by the new one (stof)
This PR was merged into the 2.3 branch. Discussion ---------- Replace usages of the deprecated TypeTestCase by the new one | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a I'm applying this in 2.3 to make merging branches easier. This is especially needed for 2.7 because of deprecation warnings added in symfony#13060 Commits ------- e6fa0ea Replace usages of the deprecated TypeTestCase by the new one
2 parents 0469ea8 + e6fa0ea commit e766363

16 files changed

+29
-16
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

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

14-
use Symfony\Component\Form\Tests\FormPerformanceTestCase;
14+
use Symfony\Component\Form\Test\FormPerformanceTestCase;
1515
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
1616
use Doctrine\ORM\Tools\SchemaTool;
1717
use Symfony\Bridge\Doctrine\Tests\DoctrineOrmTestCase;

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
1313

1414
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
15-
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1615
use Symfony\Component\Form\Test\TypeTestCase;
1716
use Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity;
1817
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;

src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Bridge\Propel1\Form\PropelExtension;
1616
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItemI18n;
1717
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItem;
18-
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
18+
use Symfony\Component\Form\Test\TypeTestCase;
1919

2020
class TranslationCollectionTypeTest extends TypeTestCase
2121
{

src/Symfony/Component/Form/Tests/CompoundFormPerformanceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Bernhard Schussek <[email protected]>
1616
*/
17-
class CompoundFormPerformanceTest extends \Symfony\Component\Form\Tests\FormPerformanceTestCase
17+
class CompoundFormPerformanceTest extends \Symfony\Component\Form\Test\FormPerformanceTestCase
1818
{
1919
/**
2020
* Create a compound form multiple times, as happens in a collection form.

src/Symfony/Component/Form/Tests/Extension/Core/Type/CountryTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
15+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1516
use Symfony\Component\Intl\Util\IntlTestHelper;
1617

17-
class CountryTypeTest extends TypeTestCase
18+
class CountryTypeTest extends TestCase
1819
{
1920
protected function setUp()
2021
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/CurrencyTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
15+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1516
use Symfony\Component\Intl\Util\IntlTestHelper;
1617

17-
class CurrencyTypeTest extends TypeTestCase
18+
class CurrencyTypeTest extends TestCase
1819
{
1920
protected function setUp()
2021
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\FormError;
15+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1516
use Symfony\Component\Intl\Util\IntlTestHelper;
1617

17-
class DateTimeTypeTest extends TypeTestCase
18+
class DateTimeTypeTest extends TestCase
1819
{
1920
protected function setUp()
2021
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
1515
use Symfony\Component\Form\FormError;
16+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1617
use Symfony\Component\Intl\Util\IntlTestHelper;
1718

18-
class DateTypeTest extends TypeTestCase
19+
class DateTypeTest extends TestCase
1920
{
2021
protected function setUp()
2122
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

14+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1415
use Symfony\Component\Intl\Util\IntlTestHelper;
1516

16-
class IntegerTypeTest extends TypeTestCase
17+
class IntegerTypeTest extends TestCase
1718
{
1819
protected function setUp()
1920
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/LanguageTypeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
15+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1516
use Symfony\Component\Intl\Util\IntlTestHelper;
1617

17-
class LanguageTypeTest extends TypeTestCase
18+
class LanguageTypeTest extends TestCase
1819
{
1920
protected function setUp()
2021
{

0 commit comments

Comments
 (0)