1
0
mirror of synced 2025-01-18 06:21:40 +03:00

new tests

This commit is contained in:
zYne 2007-02-10 20:55:46 +00:00
parent 0b9a92b9a8
commit 5ddd15fefc

View File

@ -206,6 +206,13 @@ class Doctrine_Export_Mysql_TestCase extends Doctrine_UnitTestCase
$this->pass(); $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 class MysqlTestRecord extends Doctrine_Record