BUGFIX: Fixed bug that was caused by r97583 (from r97589)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102358 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-12 02:14:33 +00:00
parent db859b793a
commit e19d18d3c9

View File

@ -569,11 +569,12 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
while(!$dbname || $dbConn->databaseExists($dbname)) {
$dbname = 'tmpdb' . rand(1000000,9999999);
}
$dbConn->selectDatabase($dbname);
$dbConn->createDatabase();
singleton('SapphireTest')->resetDBSchema();
$st = new SapphireTest();
$st->resetDBSchema();
return $dbname;
}