Skip to content
Permalink
Browse files

Add failing test for Text::slug()

Cleaning the string fails when string contains bracket and "preserve" option is set.
  • Loading branch information...
ADmad committed Oct 3, 2017
1 parent d738b22 commit a72fcae77e260faf1ecee258b0e5a78b78b5dba1
Showing with 9 additions and 1 deletion.
  1. +9 −1 tests/TestCase/Utility/TextTest.php
@@ -1804,7 +1804,15 @@ public function slugInputProvider()
[
'clean!_me.tar.gz', ['preserve' => '.'],
'clean-me.tar.gz'
]
],
[
'cl#ean(me', [],
'cl-ean-me'
],
[
'cl#ean(me.jpg', ['preserve' => '.'],
'cl-ean-me.jpg'
],
];
}

0 comments on commit a72fcae

Please sign in to comment.
You can’t perform that action at this time.