From 5645bf007ca62cc52e7ceb15b326ddb76818ed00 Mon Sep 17 00:00:00 2001 From: Andreas Kienast <a.fernandez@scripting-base.de> Date: Mon, 19 Feb 2024 09:50:08 +0100 Subject: [PATCH] [BUGFIX] Remove outdated comment regarding `capitalWords` in `f:format.case` Resolves: #103142 Releases: main, 12.4, 11.5 Change-Id: I31e5af71aa0e1a9104f8c154a6f0e34f29c90a77 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82983 Tested-by: Andreas Kienast <a.fernandez@scripting-base.de> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Andreas Kienast <a.fernandez@scripting-base.de> --- .../fluid/Classes/ViewHelpers/Format/CaseViewHelper.php | 2 +- .../Functional/ViewHelpers/Format/CaseViewHelperTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php index 4214a67b05aa..199e7c87cfd8 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php @@ -41,7 +41,7 @@ use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic; * Transforms the input string to its first letter lower-cased, i.e. uncapitalization * * ``capitalWords`` - * Not supported yet: Transforms the input string to each containing word being capitalized + * Transforms the input string to each containing word being capitalized * * Note that the behavior will be the same as in the appropriate PHP function `mb_convert_case`_; * especially regarding locale and multibyte behavior. diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php index fe024ee73e05..d9596df71a39 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php @@ -57,6 +57,10 @@ final class CaseViewHelperTest extends FunctionalTestCase '<f:format.case value="FOO Bar" mode="uncapital" />', 'fOO Bar', ], + 'mode capital words' => [ + '<f:format.case value="foo bar baz" mode="capitalWords" />', + 'Foo Bar Baz', + ], 'special chars 1' => [ '<f:format.case value="smørrebrød" mode="upper" />', 'SMØRREBRØD', -- GitLab