[BUGFIX] Empty text with non-localizable label key
[Packages/TYPO3.CMS.git] / tests / typo3 / sysext / cms / tslib / class.tslib_feTest.php
index e9c0a75..de91301 100644 (file)
@@ -89,6 +89,19 @@ class tslib_feTest extends tx_phpunit_testcase {
        }
 
 
+       //////////////////////
+       // Tests concerning sL
+       //////////////////////
+
+       /**
+        * @test
+        */
+       public function localizationReturnsUnchangedStringIfNotLocallangLabel() {
+               $string = uniqid();
+               $this->assertEquals($string, $this->fixture->sL($string));
+       }
+
+
        //////////////////////////////////////////
        // Tests concerning roundTripCryptString
        //////////////////////////////////////////