From b93f48790e697f26bfad470516e2e4c67c18a579 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 18 Jun 2009 05:01:15 +0000 Subject: [PATCH] MINOR: Improved logic of SapphireTest's database deletion code. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@79540 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/SapphireTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 97d61f856..446050a26 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -232,11 +232,11 @@ class SapphireTest extends PHPUnit_Framework_TestCase { if($dbName && DB::getConn()->databaseExists($dbName)) { // echo "Deleted temp database " . $dbConn->currentDatabase() . "\n"; $dbConn->dropDatabase(); + + // Todo: it would be good to remove this inappropriate coupling, somehow. + // The versioned class keeps a static cache of information about temporary tables. + Versioned::on_db_reset(); } - - // Todo: it would be good to remove this inappropriate coupling, somehow. - // The versioned class keeps a static cache of information about temporary tables. - Versioned::on_db_reset(); } }