mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
6fa83caae6
commit
b93f48790e
@ -232,13 +232,13 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
|||||||
if($dbName && DB::getConn()->databaseExists($dbName)) {
|
if($dbName && DB::getConn()->databaseExists($dbName)) {
|
||||||
// echo "Deleted temp database " . $dbConn->currentDatabase() . "\n";
|
// echo "Deleted temp database " . $dbConn->currentDatabase() . "\n";
|
||||||
$dbConn->dropDatabase();
|
$dbConn->dropDatabase();
|
||||||
}
|
|
||||||
|
|
||||||
// Todo: it would be good to remove this inappropriate coupling, somehow.
|
// Todo: it would be good to remove this inappropriate coupling, somehow.
|
||||||
// The versioned class keeps a static cache of information about temporary tables.
|
// The versioned class keeps a static cache of information about temporary tables.
|
||||||
Versioned::on_db_reset();
|
Versioned::on_db_reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Make this db agnostic
|
* @todo Make this db agnostic
|
||||||
|
Loading…
Reference in New Issue
Block a user