You are here

protected function AbstractConstraintValidatorTest::setRoot in Plug 7

6 calls to AbstractConstraintValidatorTest::setRoot()
ExpressionValidatorTest::testFailingExpressionAtNestedPropertyLevel in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevel in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testFailingExpressionAtPropertyLevelWithoutRoot in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php
When validatePropertyValue() is called with a class name https://github.com/symfony/symfony/pull/11498
ExpressionValidatorTest::testSucceedingExpressionAtNestedPropertyLevel in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php
ExpressionValidatorTest::testSucceedingExpressionAtPropertyLevel in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php

... See full list

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php, line 265

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);
}