1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1257 DDC-3300 - strengthening test case (missing assertion, test name)

This commit is contained in:
Marco Pivetta 2015-01-22 09:51:43 +01:00
parent c1cc768aee
commit 6547d5462e

View File

@ -9,7 +9,7 @@ use Doctrine\ORM\Tools\ResolveTargetEntityListener;
*/
class DDC3300Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function testIssue()
public function testResolveTargetEntitiesChangesDiscriminatorMapValues()
{
$resolveTargetEntity = new ResolveTargetEntityListener();
@ -31,10 +31,17 @@ class DDC3300Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->getClassMetadata(DDC3300Person::CLASSNAME),
));
$this->_em->persist(new DDC3300Boss());
$this->_em->persist(new DDC3300Employee());
$boss = new DDC3300Boss();
$employee = new DDC3300Employee();
$this->_em->persist($boss);
$this->_em->persist($employee);
$this->_em->flush();
$this->_em->clear();
$this->assertEquals($boss, $this->_em->find(DDC3300BossInterface::INTERFACENAME, $boss->id));
$this->assertEquals($employee, $this->_em->find(DDC3300EmployeeInterface::INTERFACENAME, $employee->id));
}
}