diff --git a/tests/Doctrine/Tests/OrmFunctionalTestCase.php b/tests/Doctrine/Tests/OrmFunctionalTestCase.php index f206f39e2..e974d2704 100644 --- a/tests/Doctrine/Tests/OrmFunctionalTestCase.php +++ b/tests/Doctrine/Tests/OrmFunctionalTestCase.php @@ -73,6 +73,7 @@ abstract class OrmFunctionalTestCase extends OrmTestCase 'Doctrine\Tests\Models\Routing\RoutingLeg', 'Doctrine\Tests\Models\Routing\RoutingLocation', 'Doctrine\Tests\Models\Routing\RoutingRoute', + 'Doctrine\Tests\Models\Routing\RoutingRouteBooking', ), ); @@ -129,6 +130,14 @@ abstract class OrmFunctionalTestCase extends OrmTestCase $conn->executeUpdate('DELETE FROM date_time_model'); } + if (isset($this->_usedModelSets['routing'])) { + $conn->executeUpdate('DELETE FROM RoutingRouteLegs'); + $conn->executeUpdate('DELETE FROM RoutingRouteBooking'); + $conn->executeUpdate('DELETE FROM RoutingRoute'); + $conn->executeUpdate('DELETE FROM RoutingLeg'); + $conn->executeUpdate('DELETE FROM RoutingLocation'); + } + $this->_em->clear(); }