Commit 5ddd15fe authored by zYne's avatar zYne

new tests

parent 0b9a92b9
......@@ -206,6 +206,13 @@ class Doctrine_Export_Mysql_TestCase extends Doctrine_UnitTestCase
$this->pass();
}
}
public function testIndexDeclarationsSupportSortingAndLengthAttributes()
{
$fields = array('id' => array('sorting' => 'ASC', 'length' => 10),
'name' => array('sorting' => 'DESC', 'length' => 1));
$this->assertEqual($this->export->getIndexFieldDeclarationList($fields), 'id(10) ASC, name(1) DESC');
}
}
class MysqlTestRecord extends Doctrine_Record
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment