Browse Source

Added tests for Text::slug using falsey replacements

Jeremy Harris 6 years ago
parent
commit
f90ba15cff
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tests/TestCase/Utility/TextTest.php

+ 8 - 0
tests/TestCase/Utility/TextTest.php

@@ -1887,6 +1887,14 @@ HTML;
                 'Foo Bar: Not just for (breakfast) any-more', ['preserve' => ' ()'],
                 'Foo Bar- Not just for (breakfast) any-more',
             ],
+            [
+                'Foo Bar: Not just for breakfast any-more', ['replacement' => null],
+                'FooBarNotjustforbreakfastanymore',
+            ],
+            [
+                'Foo Bar: Not just for breakfast any-more', ['replacement' => false],
+                'FooBarNotjustforbreakfastanymore',
+            ],
         ];
     }