From a5f3afd54e49d8ee44094076d6b406684e17cbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 2 Jan 2026 16:00:05 +0100 Subject: [PATCH] Add `getLocale` method to mock translator in ByStepAggregatorTest and ByStepFilterTest --- .../ByStepAggregatorTest.php | 5 +++++ .../ByStepFilterTest.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregatorTest.php index 57416ffef..c9c8d8b4e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregatorTest.php @@ -31,6 +31,11 @@ class ByStepAggregatorTest extends AbstractAggregatorTest { return $id; } + + public function getLocale(): string + { + return 'en'; + } }; return new ByStepAggregator($translator); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByStepFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByStepFilterTest.php index caba79ba3..2029ab05f 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByStepFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByStepFilterTest.php @@ -32,6 +32,11 @@ class ByStepFilterTest extends AbstractFilterTest { return $id; } + + public function getLocale(): string + { + return 'en'; + } }; return new ByStepFilter($translator);