diff --git a/tests/Table/IndexesUsingSingleFieldStringTestCase.php b/tests/Table/IndexesUsingSingleFieldStringTestCase.php new file mode 100644 index 000000000..1c4261dc8 --- /dev/null +++ b/tests/Table/IndexesUsingSingleFieldStringTestCase.php @@ -0,0 +1,27 @@ +tables = array('IndexDeclaredWithSingleFieldStringRecord'); + + parent::prepareTables(); + } + + public function testSupportIndexesUsingSingleFieldString() + { + } +} + +class IndexDeclaredWithSingleFieldStringRecord extends Doctrine_Record +{ + public function setTableDefinition() + { + $this->hasColumn('some_column_name', 'string', 255); + + $this->index('single_field_index_as_string', array( + 'fields' => 'some_column_name', + )); + } +} diff --git a/tests/run.php b/tests/run.php index d1dd2c7ee..16fe619fa 100644 --- a/tests/run.php +++ b/tests/run.php @@ -140,6 +140,7 @@ $core->addTestCase(new Doctrine_Table_TestCase()); $core->addTestCase(new Doctrine_Table_RemoveColumn_TestCase()); $core->addTestCase(new Doctrine_Table_NamedQuery_TestCase()); +$core->addTestCase(new Doctrine_Table_IndexesUsingSingleFieldString_TestCase()); $core->addTestCase(new Doctrine_UnitOfWork_TestCase()); $core->addTestCase(new Doctrine_Collection_TestCase()); $core->addTestCase(new Doctrine_Collection_Snapshot_TestCase());