From ef87ba79137e7c1351c556d108664a82aa8aed7c Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Thu, 9 May 2013 23:31:20 +0100 Subject: [PATCH] [Form] Fixed a method name. 1858b96b7dc473fcab09533b17ace9a24b8d3d86 introduced a mocked context and therefore getExecutionContext() is now called getMockExectionContext(). --- .../Validator/Constraints/FormValidatorTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php index 48f6123426..f1ee046551 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php @@ -293,17 +293,16 @@ class FormValidatorTest extends \PHPUnit_Framework_TestCase public function testDontExecuteFunctionNames() { - $context = $this->getExecutionContext(); - $graphWalker = $context->getGraphWalker(); + $context = $this->getMockExecutionContext(); $object = $this->getMock('\stdClass'); $options = array('validation_groups' => 'header'); $form = $this->getBuilder('name', '\stdClass', $options) ->setData($object) ->getForm(); - $graphWalker->expects($this->once()) - ->method('walkReference') - ->with($object, 'header', 'data', true); + $context->expects($this->once()) + ->method('validate') + ->with($object, 'data', 'header', true); $this->validator->initialize($context); $this->validator->validate($form, new Form());