DDC-3699 - #1387 - leveraging the OrmFunctionalTestCase
API
This commit is contained in:
parent
173729e560
commit
6bc405455e
@ -13,18 +13,9 @@ class DDC3597Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
$this->useModelSet('ddc3699');
|
||||||
|
|
||||||
try {
|
parent::setUp();
|
||||||
$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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -139,6 +139,12 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
|
|||||||
'Doctrine\Tests\Models\DDC117\DDC117Editor',
|
'Doctrine\Tests\Models\DDC117\DDC117Editor',
|
||||||
'Doctrine\Tests\Models\DDC117\DDC117Link',
|
'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(
|
'stockexchange' => array(
|
||||||
'Doctrine\Tests\Models\StockExchange\Bond',
|
'Doctrine\Tests\Models\StockExchange\Bond',
|
||||||
'Doctrine\Tests\Models\StockExchange\Stock',
|
'Doctrine\Tests\Models\StockExchange\Stock',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user