diff --git a/tests/Doctrine/Tests/Models/DDC2825/SchemaAndTableInTableName.php b/tests/Doctrine/Tests/Models/DDC2825/SchemaAndTableInTableName.php new file mode 100644 index 000000000..e049befac --- /dev/null +++ b/tests/Doctrine/Tests/Models/DDC2825/SchemaAndTableInTableName.php @@ -0,0 +1,20 @@ +assertSame('myschema', $metadata->getSchemaName()); $this->assertSame('mytable', $metadata->getTableName()); } + + /** + * @group DDC-2825 + * @group 881 + */ + public function testSchemaDefinitionViaSchemaDefinedInTableNameInTableAnnotationProperty() + { + /* @var $metadata \Doctrine\ORM\Mapping\ClassMetadata */ + $metadata = $this->createClassMetadataFactory()->getMetadataFor(SchemaAndTableInTableName::CLASSNAME); + + $this->assertSame('myschema', $metadata->getSchemaName()); + $this->assertSame('mytable', $metadata->getTableName()); + } } /**