You are here

public function AbstractValidatorTest::testValidatePropertyWithoutConstraints in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Validator/AbstractValidatorTest.php \Symfony\Component\Validator\Tests\Validator\AbstractValidatorTest::testValidatePropertyWithoutConstraints()

https://github.com/symfony/symfony/issues/11604.

File

vendor/symfony/validator/Tests/Validator/AbstractValidatorTest.php, line 859

Class

AbstractValidatorTest
@since 2.5

Namespace

Symfony\Component\Validator\Tests\Validator

Code

public function testValidatePropertyWithoutConstraints() {
  $entity = new Entity();
  $violations = $this
    ->validateProperty($entity, 'lastName');
  $this
    ->assertCount(0, $violations, '->validateProperty() returns no violations if no constraints have been configured for the property being validated');
}