[BUGFIX] TS: Allow "0" as strPad.padWith
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Tests / Unit / ContentObject / ContentObjectRendererTest.php
index 8bdd823..d9ccf99 100644 (file)
@@ -858,6 +858,15 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                                ),
                                '__Alien___',
                        ),
+                       'pad string with padWith 0 and type both and length 10' => array(
+                               'Alien',
+                               array(
+                                       'length' => '10',
+                                       'padWith' => '0',
+                                       'type' => 'both',
+                               ),
+                               '00Alien000',
+                       ),
                        'pad string with padWith ___ and type both and length 6' => array(
                                'Alien',
                                array(