More feedback on which temp db gets created

This commit is contained in:
Ingo Schommer 2012-12-19 15:56:33 +01:00
parent 6c9be905f9
commit b170e621c9

View File

@ -162,8 +162,8 @@ class SilverStripeAwareInitializer implements InitializerInterface
protected function initializeTempDb()
{
file_put_contents('php://stderr', 'Creating temp DB' . PHP_EOL);
$dbname = \SapphireTest::create_temp_db();
file_put_contents('php://stderr', "Creating temp DB $dbname" . PHP_EOL);
\DB::set_alternative_database_name($dbname);
return $dbname;
@ -171,7 +171,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
protected function deleteTempDb()
{
file_put_contents('php://stderr', 'Killing temp DB' . PHP_EOL);
file_put_contents('php://stderr', "Killing temp DB" . PHP_EOL);
\SapphireTest::kill_temp_db();
\DB::set_alternative_database_name(null);
}