Skip to content

Commit

Permalink
#1130 DDC-3300 - cleaning up test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 15, 2015
1 parent 1c758ec commit 01fa5d6
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3300Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Doctrine\Tests\ORM\Functional\Ticket;

use Doctrine\ORM\Events;
use Doctrine\ORM\Tools\ResolveDiscriminatorMapListener;
use Doctrine\ORM\Tools\ResolveTargetEntityListener;

/**
Expand Down Expand Up @@ -33,13 +31,8 @@ public function testIssue()
$this->_em->getClassMetadata(DDC3300Person::CLASSNAME),
));

//die(var_dump($this->_em->getClassMetadata(DDC3300Person::CLASSNAME)->discriminatorMap));

$boss = new DDC3300Boss();
$this->_em->persist($boss);

$employee = new DDC3300Employee();
$this->_em->persist($employee);
$this->_em->persist(new DDC3300Boss());
$this->_em->persist(new DDC3300Employee());

$this->_em->flush();
}
Expand All @@ -50,19 +43,15 @@ public function testIssue()
* @InheritanceType("SINGLE_TABLE")
* @DdiscriminatorColumn(name="discr", type="string")
* @DiscriminatorMap({
* "boss" = "Doctrine\Tests\ORM\Functional\Ticket\DDC3300BossInterface",
* "boss" = "Doctrine\Tests\ORM\Functional\Ticket\DDC3300BossInterface",
* "employee" = "Doctrine\Tests\ORM\Functional\Ticket\DDC3300EmployeeInterface"
* })
*/
abstract class DDC3300Person
{
const CLASSNAME = __CLASS__;

/**
* @Id
* @Column(type="integer")
* @GeneratedValue(strategy="AUTO")
*/
/** @Id @Column(type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
}

Expand All @@ -71,9 +60,7 @@ interface DDC3300BossInterface
const INTERFACENAME = __CLASS__;
}

/**
* @Entity
*/
/** @Entity */
class DDC3300Boss extends DDC3300Person implements DDC3300BossInterface
{
const CLASSNAME = __CLASS__;
Expand All @@ -84,9 +71,7 @@ interface DDC3300EmployeeInterface
const INTERFACENAME = __CLASS__;
}

/**
* @Entity
*/
/** @Entity */
class DDC3300Employee extends DDC3300Person implements DDC3300EmployeeInterface
{
const CLASSNAME = __CLASS__;
Expand Down

0 comments on commit 01fa5d6

Please sign in to comment.