Thanks to visit codestin.com
Credit goes to github.com

Skip to content

do not used deprecated validator test case class #22815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@
use Symfony\Bridge\Doctrine\Tests\Fixtures\Type\StringWrapper;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator;
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
use Doctrine\ORM\Tools\SchemaTool;

/**
* @author Bernhard Schussek <[email protected]>
*
* @todo use ConstraintValidatorTestCase when symfony/validator ~3.2 is required.
*/
class UniqueEntityValidatorTest extends AbstractConstraintValidatorTest
class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
{
const EM_NAME = 'foo';

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Doctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"symfony/proxy-manager-bridge": "~2.8|~3.0|~4.0.0",
"symfony/security": "~2.8|~3.0|~4.0.0",
"symfony/expression-language": "~2.8|~3.0|~4.0.0",
"symfony/validator": "^2.8.18|^3.2.5|~4.0.0",
"symfony/validator": "^3.2.5|~4.0.0",
"symfony/translation": "~2.8|~3.0|~4.0.0",
"doctrine/data-fixtures": "1.0.*",
"doctrine/dbal": "~2.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@
use Symfony\Component\Validator\Constraints\NotNull;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Valid;
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;

/**
* @author Bernhard Schussek <[email protected]>
*
* @todo use ConstraintValidatorTestCase when symfony/validator ~3.2 is required.
*/
class FormValidatorTest extends AbstractConstraintValidatorTest
class FormValidatorTest extends ConstraintValidatorTestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"require-dev": {
"doctrine/collections": "~1.0",
"symfony/validator": "^2.8.18|^3.2.5|~4.0.0",
"symfony/validator": "^3.2.5|~4.0.0",
"symfony/dependency-injection": "~3.3|~4.0.0",
"symfony/config": "~2.7|~3.0|~4.0.0",
"symfony/http-foundation": "~2.8|~3.0|~4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
use Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator;
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;

/**
* @author Bernhard Schussek <[email protected]>
*/
abstract class UserPasswordValidatorTest extends AbstractConstraintValidatorTest
abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
{
const PASSWORD = 's3Cr3t';

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Security/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"symfony/expression-language": "~2.8|~3.0|~4.0.0",
"symfony/http-foundation": "~2.8|~3.0|~4.0.0",
"symfony/ldap": "~3.1|~4.0.0",
"symfony/validator": "^2.8.18|^3.2.5|~4.0.0",
"symfony/validator": "^3.2.5|~4.0.0",
"psr/log": "~1.0"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Security/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"symfony/finder": "~2.8|~3.0|~4.0.0",
"symfony/polyfill-intl-icu": "~1.0",
"symfony/routing": "~2.8|~3.0|~4.0.0",
"symfony/validator": "^2.8.18|^3.2.5|~4.0.0",
"symfony/validator": "^3.2.5|~4.0.0",
"symfony/expression-language": "~2.8|~3.0|~4.0.0",
"symfony/ldap": "~3.1|~4.0.0",
"psr/log": "~1.0"
Expand Down