Replace usages of the deprecated TypeTestCase by the new one

This commit is contained in:
Christophe Coevoet 2014-12-29 22:04:28 +01:00
parent 0469ea82b1
commit e6fa0ea4e1
16 changed files with 29 additions and 16 deletions

View File

@ -11,7 +11,7 @@
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
use Symfony\Component\Form\Tests\FormPerformanceTestCase;
use Symfony\Component\Form\Test\FormPerformanceTestCase;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
use Doctrine\ORM\Tools\SchemaTool;
use Symfony\Bridge\Doctrine\Tests\DoctrineOrmTestCase;

View File

@ -12,7 +12,6 @@
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;

View File

@ -15,7 +15,7 @@ use Symfony\Bridge\Propel1\Tests\Fixtures\Item;
use Symfony\Bridge\Propel1\Form\PropelExtension;
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItemI18n;
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItem;
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
use Symfony\Component\Form\Test\TypeTestCase;
class TranslationCollectionTypeTest extends TypeTestCase
{

View File

@ -14,7 +14,7 @@ namespace Symfony\Component\Form\Tests;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class CompoundFormPerformanceTest extends \Symfony\Component\Form\Tests\FormPerformanceTestCase
class CompoundFormPerformanceTest extends \Symfony\Component\Form\Test\FormPerformanceTestCase
{
/**
* Create a compound form multiple times, as happens in a collection form.

View File

@ -12,9 +12,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class CountryTypeTest extends TypeTestCase
class CountryTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -12,9 +12,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class CurrencyTypeTest extends TypeTestCase
class CurrencyTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -12,9 +12,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class DateTimeTypeTest extends TypeTestCase
class DateTimeTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -13,9 +13,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class DateTypeTest extends TypeTestCase
class DateTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class IntegerTypeTest extends TypeTestCase
class IntegerTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -12,9 +12,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class LanguageTypeTest extends TypeTestCase
class LanguageTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -12,9 +12,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class LocaleTypeTest extends TypeTestCase
class LocaleTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class MoneyTypeTest extends TypeTestCase
class MoneyTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -11,9 +11,10 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class NumberTypeTest extends TypeTestCase
class NumberTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -11,10 +11,12 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class SubmitTypeTest extends TypeTestCase
class SubmitTypeTest extends TestCase
{
public function testCreateSubmitButtonInstances()
{

View File

@ -13,9 +13,10 @@ namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Component\Form\Extension\Core\View\ChoiceView;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;
class TimeTypeTest extends TypeTestCase
class TimeTypeTest extends TestCase
{
protected function setUp()
{

View File

@ -11,7 +11,9 @@
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
class UrlTypeTest extends TypeTestCase
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
class UrlTypeTest extends TestCase
{
public function testSubmitAddsDefaultProtocolIfNoneIsIncluded()
{