浏览代码

Failed test

Sandra Vigo 7 年之前
父节点
当前提交
26ac842629
共有 1 个文件被更改,包括 5 次插入0 次删除
  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);
 	}
 
 	/**