You are here

protected function AbstractConstraintValidatorTest::setRoot in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest::setRoot()
6 calls to AbstractConstraintValidatorTest::setRoot()
ExpressionValidatorTest::testFailingExpressionAtNestedPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevelWithoutRoot in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
When validatePropertyValue() is called with a class name https://github.com/symfony/symfony/pull/11498.
ExpressionValidatorTest::testSucceedingExpressionAtNestedPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testSucceedingExpressionAtPropertyLevel in vendor/symfony/validator/Tests/Constraints/ExpressionValidatorTest.php

... See full list

File

vendor/symfony/validator/Tests/Constraints/AbstractConstraintValidatorTest.php, line 195

Class

AbstractConstraintValidatorTest
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

protected function setRoot($root) {
  $this->root = $root;
  $this->context = $this
    ->createContext();
  $this->validator
    ->initialize($this->context);
}