From 954c8e1010e8bded2a658fffa7410dbc6c7e2615 Mon Sep 17 00:00:00 2001 From: Elmar Hinz <t3elmar@gmail.com> Date: Fri, 27 May 2016 09:22:04 +0200 Subject: [PATCH] [TASK] Unit test to cover stdWrap_char Releases: master Resolves: #76316 Change-Id: I40c05c0d6a342b3d3c19dc164ae7716076aa3df2 Reviewed-on: https://review.typo3.org/48307 Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de> --- .../Unit/ContentObject/ContentObjectRendererTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index b145fcd05ced..99f2f5536328 100755 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -2609,6 +2609,18 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase $this->assertEquals($expected, $this->subject->stdWrap_brTag($input, $config)); } + /** + * Check if char works properly + * + * @test + */ + public function stdWrap_char() + { + $input = 'discarded'; + $expected = 'C'; + $this->assertEquals($expected, $this->subject->stdWrap_char($input, ['char' => '67'])); + } + /////////////////////////////// // Tests concerning getData() /////////////////////////////// -- GitLab