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

[2.0] DDC-191 - Added test that verifies mixed case identifier generation is default, when no case mode is set due to previous commit for DDC-169 ticket.

This commit is contained in:
beberlei 2009-12-03 22:15:07 +00:00
parent b0bbe281f3
commit 94cf75b9ac

View File

@ -14,6 +14,15 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
return new MysqlPlatform;
}
public function testGenerateMixedCaseTableCreate()
{
$table = new \Doctrine\DBAL\Schema\Table("Foo");
$table->createColumn("Bar", "integer");
$sql = $this->_platform->getCreateTableSql($table);
$this->assertEquals('CREATE TABLE Foo (Bar INT NOT NULL) ENGINE = InnoDB', array_shift($sql));
}
public function getGenerateTableSql()
{
return 'CREATE TABLE test (id INT AUTO_INCREMENT NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) ENGINE = InnoDB';