1
0
mirror of synced 2025-02-02 13:31:45 +03:00

DDC-3699 - #1387 - leveraging the OrmFunctionalTestCase API

This commit is contained in:
Marco Pivetta 2015-07-15 21:51:04 +01:00
parent 173729e560
commit 6bc405455e
2 changed files with 8 additions and 11 deletions

View File

@ -13,18 +13,9 @@ class DDC3597Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
{
parent::setUp();
$this->useModelSet('ddc3699');
try {
$this->_schemaTool->createSchema(array(
$this->_em->getClassMetadata(DDC3699Parent::CLASSNAME),
$this->_em->getClassMetadata(DDC3699RelationOne::CLASSNAME),
$this->_em->getClassMetadata(DDC3699RelationMany::CLASSNAME),
$this->_em->getClassMetadata(DDC3699Child::CLASSNAME),
));
} catch (SchemaException $e) {
// should throw error on second because schema is already created
}
parent::setUp();
}
/**

View File

@ -139,6 +139,12 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
'Doctrine\Tests\Models\DDC117\DDC117Editor',
'Doctrine\Tests\Models\DDC117\DDC117Link',
),
'ddc3699' => array(
'Doctrine\Tests\Models\DDC3699\DDC3699Parent',
'Doctrine\Tests\Models\DDC3699\DDC3699RelationOne',
'Doctrine\Tests\Models\DDC3699\DDC3699RelationMany',
'Doctrine\Tests\Models\DDC3699\DDC3699Child',
),
'stockexchange' => array(
'Doctrine\Tests\Models\StockExchange\Bond',
'Doctrine\Tests\Models\StockExchange\Stock',