1
0
mirror of synced 2025-03-02 02:43:20 +03:00

DDC-3517 - correcting test docblocks

This commit is contained in:
Marco Pivetta 2015-01-18 18:15:03 +01:00
parent bffc99a116
commit 185f22668c

@ -9,16 +9,10 @@ use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query; use Doctrine\ORM\Query;
use Doctrine\Tests\OrmFunctionalTestCase; use Doctrine\Tests\OrmFunctionalTestCase;
/**
* Tests a unidirectional one-to-one association mapping (without inheritance).
* Inverse side is not present.
*/
class OneToOneSingleTableInheritanceTest extends OrmFunctionalTestCase class OneToOneSingleTableInheritanceTest extends OrmFunctionalTestCase
{ {
protected function setUp() protected function setUp()
{ {
//$this->useModelSet('ecommerce');
parent::setUp(); parent::setUp();
$this->_schemaTool->createSchema([ $this->_schemaTool->createSchema([
@ -28,6 +22,12 @@ class OneToOneSingleTableInheritanceTest extends OrmFunctionalTestCase
]); ]);
} }
/**
* Tests a unidirectional one-to-one association mapping from an inheritance child class
*
* @group DDC-3517
* @group #1265
*/
public function testFindFromOneToOneOwningSideJoinedTableInheritance() public function testFindFromOneToOneOwningSideJoinedTableInheritance()
{ {
$cat = new Cat(); $cat = new Cat();
@ -45,7 +45,6 @@ class OneToOneSingleTableInheritanceTest extends OrmFunctionalTestCase
$this->assertSame($cat->id, $foundCat->id); $this->assertSame($cat->id, $foundCat->id);
$this->assertInstanceOf(LitterBox::CLASSNAME, $foundCat->litterBox); $this->assertInstanceOf(LitterBox::CLASSNAME, $foundCat->litterBox);
$this->assertSame($cat->litterBox->id, $foundCat->litterBox->id); $this->assertSame($cat->litterBox->id, $foundCat->litterBox->id);
} }
} }