new tests
This commit is contained in:
parent
0b9a92b9a8
commit
5ddd15fefc
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user