Browse Source

Add failing test for Text::slug()

Cleaning the string fails when string contains bracket and "preserve" option is set.
ADmad 8 years ago
parent
commit
a72fcae77e
1 changed files with 9 additions and 1 deletions
  1. 9 1
      tests/TestCase/Utility/TextTest.php

+ 9 - 1
tests/TestCase/Utility/TextTest.php

@@ -1804,7 +1804,15 @@ HTML;
             [
                 'clean!_me.tar.gz', ['preserve' => '.'],
                 'clean-me.tar.gz'
-            ]
+            ],
+            [
+                'cl#ean(me', [],
+                'cl-ean-me'
+            ],
+            [
+                'cl#ean(me.jpg', ['preserve' => '.'],
+                'cl-ean-me.jpg'
+            ],
         ];
     }