1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0] DDC-191 - Added Test-Case to verify the problem works.

This commit is contained in:
beberlei 2009-12-07 19:19:54 +00:00
parent ddb5a66fd8
commit 4e50441306

View File

@ -330,5 +330,15 @@ class TableTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($constraints["foo_id_fk"]->hasOption("foo"));
$this->assertEquals("bar", $constraints["foo_id_fk"]->getOption("foo"));
}
public function testAddIndexWithCaseSensitiveColumnProblem()
{
$table = new Table("foo");
$table->createColumn("id", 'integer');
$table->addIndex(array("ID"), "my_idx");
$this->assertTrue($table->hasIndex('my_idx'));
$this->assertEquals(array("ID"), $table->getIndex("my_idx")->getColumns());
}
}