From c40e9484d047cc1beafa54492ee852c51ac3afc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Cardoso?= Date: Thu, 22 Aug 2024 17:15:56 +0200 Subject: [PATCH] fix mock in AbstractConstraintValidatorTestCase --- src/Symfony/AbstractConstraintValidatorTestCase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/AbstractConstraintValidatorTestCase.php b/src/Symfony/AbstractConstraintValidatorTestCase.php index 43468ec..ca5f069 100644 --- a/src/Symfony/AbstractConstraintValidatorTestCase.php +++ b/src/Symfony/AbstractConstraintValidatorTestCase.php @@ -55,6 +55,7 @@ protected function setUp(): void parent::setUp(); $this->violationBuilder = $this->createMock(ConstraintViolationBuilder::class); $this->executionContext = $this->createMock(ExecutionContextInterface::class); + $this->executionContext->method('getRoot')->willReturn($this->initRootForm()); $this->validator = $this->getValidator(); $this->constraint = $this->getConstraint();