From 9211bc2f4ebfeadbc075d3d646bb950bbea5d894 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 31 Oct 2010 09:20:33 +0100 Subject: [PATCH] DDC-832 - Fix regression in testsuite due to SchemaTool not being able to handle reserved word table names. --- .../Tests/ORM/Functional/Ticket/DDC832Test.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php index 8277cdd2f..c598a8194 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php @@ -24,6 +24,16 @@ class DDC832Test extends \Doctrine\Tests\OrmFunctionalTestCase } } + public function tearDown() + { + /* @var $sm \Doctrine\DBAL\Schema\AbstractSchemaManager */ + $platform = $this->_em->getConnection()->getDatabasePlatform(); + $sm = $this->_em->getConnection()->getSchemaManager(); + $sm->dropTable($platform->quoteIdentifier('TREE_INDEX')); + $sm->dropTable($platform->quoteIdentifier('INDEX')); + $sm->dropTable($platform->quoteIdentifier('LIKE')); + } + /** * @group DDC-832 */