euromark 11 years ago
parent
commit
208f17fb43
1 changed files with 3 additions and 0 deletions
  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
  */
 	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');
 		$entity = $this->_getEntity(str_repeat('foo bar ', 100));