1
0
mirror of synced 2025-02-03 22:09:26 +03:00
2016-12-08 18:13:39 +01:00

42 lines
981 B
PHP

<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\OrmFunctionalTestCase;
/**
* @group DDC-1360
*/
class DDC1360Test extends OrmFunctionalTestCase
{
public function testSchemaDoubleQuotedCreate()
{
if ($this->_em->getConnection()->getDatabasePlatform()->getName() != "postgresql") {
$this->markTestSkipped("PostgreSQL only test.");
}
$sql = $this->_schemaTool->getCreateSchemaSql(
[
$this->_em->getClassMetadata(DDC1360DoubleQuote::class)
]
);
$this->assertEquals(
[
'CREATE SCHEMA user',
'CREATE TABLE "user"."user" (id INT NOT NULL, PRIMARY KEY(id))',
'CREATE SEQUENCE "user"."user_id_seq" INCREMENT BY 1 MINVALUE 1 START 1',
], $sql);
}
}
/**
* @Entity @Table(name="`user`.`user`")
*/
class DDC1360DoubleQuote
{
/** @Id @GeneratedValue @Column(type="integer") */
public $id;
}