euromark 11 年之前
父节点
当前提交
208f17fb43
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Test/TestCase/Model/Behavior/SluggedBehaviorTest.php

+ 3 - 0
Test/TestCase/Model/Behavior/SluggedBehaviorTest.php

@@ -114,6 +114,9 @@ class SluggedBehaviorTest extends TestCase {
  * @return void
  * @return void
  */
  */
 	public function testLengthRestrictionAutoDetect() {
 	public function testLengthRestrictionAutoDetect() {
+		$config = ConnectionManager::config('test');
+		$this->skipIf(strpos($config['driver'], 'Mysql') === false, 'Only works with MySql field lengths.');
+
 		$this->articles->addBehavior('Tools.Slugged');
 		$this->articles->addBehavior('Tools.Slugged');
 		$entity = $this->_getEntity(str_repeat('foo bar ', 100));
 		$entity = $this->_getEntity(str_repeat('foo bar ', 100));