[2.0] DDC-191 - Added Test-Case to verify the problem works.
This commit is contained in:
parent
ddb5a66fd8
commit
4e50441306
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user