Skip to content

Commit

Permalink
DDC-3699 - #1387 - leveraging the OrmFunctionalTestCase API
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 15, 2015
1 parent 173729e commit 6bc4054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3699Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down
6 changes: 6 additions & 0 deletions tests/Doctrine/Tests/OrmFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6bc4054

Please sign in to comment.