Browse Source

SortableGroup error testcase

Roman Marintsenko 13 years ago
parent
commit
be919b9d0a

+ 1 - 1
tests/Gedmo/Sortable/Fixture/Transport/Vehicle.php

@@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM;
 
 /**
  * @ORM\Entity
- * @ORM\InheritanceType("SINGLE_TABLE")
+ * @ORM\InheritanceType("JOINED")
  * @ORM\DiscriminatorColumn(name="discriminator", type="string")
  * @ORM\DiscriminatorMap({
  *      "vehicle" = "Vehicle",

+ 3 - 2
tests/Gedmo/Sortable/SortableGroupTest.php

@@ -57,8 +57,9 @@ class SortableGroupTest extends BaseTestCaseORM
 
         $icarus = $this->em->getRepository(self::BUS)->findOneByTitle('Icarus');
         $this->assertEquals(2, $icarus->getSortByEngine());
-        //$this->em->remove($audi);
-        //$this->em->flush();
+
+        $this->em->remove($audi80);
+        $this->em->flush();
     }
 
     protected function getUsedEntityFixtures()