Commit 94cf75b9 authored by beberlei's avatar beberlei

[2.0] DDC-191 - Added test that verifies mixed case identifier generation is...

[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.
parent b0bbe281
...@@ -14,6 +14,15 @@ class MySqlPlatformTest extends AbstractPlatformTestCase ...@@ -14,6 +14,15 @@ class MySqlPlatformTest extends AbstractPlatformTestCase
return new MysqlPlatform; 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() public function getGenerateTableSql()
{ {
return 'CREATE TABLE test (id INT AUTO_INCREMENT NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) ENGINE = InnoDB'; return 'CREATE TABLE test (id INT AUTO_INCREMENT NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) ENGINE = InnoDB';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment