From 6547d5462e6e2a5c45262f57ec9fa11d79e16f6b Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 22 Jan 2015 09:51:43 +0100 Subject: [PATCH] #1257 DDC-3300 - strengthening test case (missing assertion, test name) --- .../Tests/ORM/Functional/Ticket/DDC3300Test.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3300Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3300Test.php index 58628d04a..b7905ca3d 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3300Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3300Test.php @@ -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)); } }