Skip to content

Commit 35f3bf9

Browse files
committed
Replace usages of the deprecated TypeTestCase by the new one
1 parent 1ad9a4c commit 35f3bf9

13 files changed

+27
-13
lines changed

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.

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
{

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
{

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
{

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
{

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
{

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
{

Tests/Extension/Core/Type/LocaleTypeTest.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 LocaleTypeTest extends TypeTestCase
18+
class LocaleTypeTest extends TestCase
1819
{
1920
protected function setUp()
2021
{

Tests/Extension/Core/Type/MoneyTypeTest.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 MoneyTypeTest extends TypeTestCase
17+
class MoneyTypeTest extends TestCase
1718
{
1819
protected function setUp()
1920
{

Tests/Extension/Core/Type/NumberTypeTest.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 NumberTypeTest extends TypeTestCase
17+
class NumberTypeTest extends TestCase
1718
{
1819
protected function setUp()
1920
{

Tests/Extension/Core/Type/SubmitTypeTest.php

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

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

14+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
15+
1416
/**
1517
* @author Bernhard Schussek <[email protected]>
1618
*/
17-
class SubmitTypeTest extends TypeTestCase
19+
class SubmitTypeTest extends TestCase
1820
{
1921
public function testCreateSubmitButtonInstances()
2022
{

Tests/Extension/Core/Type/TimeTypeTest.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 TimeTypeTest extends TypeTestCase
19+
class TimeTypeTest extends TestCase
1920
{
2021
protected function setUp()
2122
{

Tests/Extension/Core/Type/UrlTypeTest.php

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

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

14-
class UrlTypeTest extends TypeTestCase
14+
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
15+
16+
class UrlTypeTest extends TestCase
1517
{
1618
public function testSubmitAddsDefaultProtocolIfNoneIsIncluded()
1719
{

0 commit comments

Comments
 (0)