From 5ddd15fefc434ea5e760014ed008c7446e30fd02 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 10 Feb 2007 20:55:46 +0000 Subject: [PATCH] new tests --- tests/Export/MysqlTestCase.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Export/MysqlTestCase.php b/tests/Export/MysqlTestCase.php index 55d2cf288..61a7505c8 100644 --- a/tests/Export/MysqlTestCase.php +++ b/tests/Export/MysqlTestCase.php @@ -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