euromark 11 年 前
コミット
2b2ebd58ee

+ 2 - 2
Test/Fixture/SluggedArticleFixture.php

@@ -17,8 +17,8 @@ class SluggedArticleFixture extends TestFixture {
  */
 	public $fields = array(
 		'id' => ['type' => 'integer'],
-		'title' => ['type' => 'string', 'null' => false],
-		'slug' => ['type' => 'string', 'null' => false],
+		'title' => ['type' => 'string', 'length' => 255, 'null' => false],
+		'slug' => ['type' => 'string', 'length' => 255, 'null' => false],
 		'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
 	);
 

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

@@ -114,9 +114,6 @@ 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));