From 89063b9acf53dce09e6a81d1f839c940b37ed638 Mon Sep 17 00:00:00 2001 From: "vinayak.iyer" Date: Mon, 26 Oct 2026 13:21:12 +0000 Subject: [PATCH] Drop the LocaleListener test case that pinned Symfony's prefix matching The case expected the header "d" to select the configured locale "de" on Symfony 7.1 and later. Symfony's 7.4 branch now matches whole subtags in Request::getPreferredLanguage() (symfony/symfony f753a76fa2), so from the next 7.4 patch release "d" matches nothing and the listener keeps the locale. The case tested Symfony's matching rule, not the bundle; the listener's "nothing matched keeps the locale" path stays covered by the other cases. Co-Authored-By: Claude Opus 5.5 Torus-Session: 1d8a246d-57ea-4dc2-bce3-87e42e38f61f --- tests/Unit/Listener/LocaleListenerTest.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/Unit/Listener/LocaleListenerTest.php b/tests/Unit/Listener/LocaleListenerTest.php index 695b69a..b1dc96b 100644 --- a/tests/Unit/Listener/LocaleListenerTest.php +++ b/tests/Unit/Listener/LocaleListenerTest.php @@ -132,12 +132,6 @@ public static function provider(): array 'de-DE', true, ], - 'a tag that a configured locale starts with, from Symfony 7.1 matched to that locale' => [ - $tagsFormattedBySymfony ? 'de' : 'unchanged', - ['de'], - 'd', - true, - ], 'a bare language, from Symfony 7.1 matched to a configured locale with a region' => [ $tagsFormattedBySymfony ? 'en_US' : 'unchanged', ['en_US', 'lt_LT'],