[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:
parent
b0bbe281f3
commit
94cf75b9ac
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user