Browse Source

Failed test

Sandra Vigo 7 years ago
parent
commit
26ac842629
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

+ 5 - 0
tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

@@ -489,6 +489,11 @@ class SluggedBehaviorTest extends TestCase {
 		$expected = 'something-with-a-in-it';
 		$result = $this->articles->generateSlug($string);
 		$this->assertEquals($expected, $result);
+
+		$string = 'something with a # in it';
+		$expected = 'something-with-a-in-isaaddat';
+		$result = $this->articles->generateSlug($string);
+		$this->assertEquals($expected, $result);
 	}
 
 	/**