[TASK] Unit test to cover stdWrap_char 07/48307/4
authorElmar Hinz <t3elmar@gmail.com>
Fri, 27 May 2016 07:22:04 +0000 (09:22 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 27 May 2016 12:19:03 +0000 (14:19 +0200)
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>
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php

index b145fcd..99f2f55 100755 (executable)
@@ -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()
     ///////////////////////////////