From 1509fcc2e911436f41614a93448f46ae2463c8fa Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 18 Nov 2021 14:33:14 +0100 Subject: [PATCH] fix: Fix tests. --- .../Person/PersonHasCenterValidatorTest.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Validator/Person/PersonHasCenterValidatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Validator/Person/PersonHasCenterValidatorTest.php index 8cd0e6b83..a237b3571 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Validator/Person/PersonHasCenterValidatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Validator/Person/PersonHasCenterValidatorTest.php @@ -1,14 +1,18 @@ [ 'center_required' => true ] - ]) - ; + ]); - return new PersonHasCenterValidator($parameterBag); + $centerResolverDispatcher = $this->createMock(CenterResolverDispatcher::class); + + return new PersonHasCenterValidator($parameterBag, $centerResolverDispatcher); } }