File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/ValidationVisitorTest.php, line 527
Class
- ValidationVisitorTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\Tests
Code
public function testValidateCascadedPropertyDoesNotValidateNestedScalarValues() {
$entity = new Entity();
$entity->reference = array(
'scalar',
'values',
);
$this->metadata
->addPropertyConstraint('reference', new Valid());
$this->visitor
->validate($entity, 'Default', '');
$this
->assertCount(0, $this->visitor
->getViolations());
}