mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
More feedback on which temp db gets created
This commit is contained in:
parent
6c9be905f9
commit
b170e621c9
@ -162,8 +162,8 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
|
|
||||||
protected function initializeTempDb()
|
protected function initializeTempDb()
|
||||||
{
|
{
|
||||||
file_put_contents('php://stderr', 'Creating temp DB' . PHP_EOL);
|
|
||||||
$dbname = \SapphireTest::create_temp_db();
|
$dbname = \SapphireTest::create_temp_db();
|
||||||
|
file_put_contents('php://stderr', "Creating temp DB $dbname" . PHP_EOL);
|
||||||
\DB::set_alternative_database_name($dbname);
|
\DB::set_alternative_database_name($dbname);
|
||||||
|
|
||||||
return $dbname;
|
return $dbname;
|
||||||
@ -171,7 +171,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
|
|
||||||
protected function deleteTempDb()
|
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();
|
\SapphireTest::kill_temp_db();
|
||||||
\DB::set_alternative_database_name(null);
|
\DB::set_alternative_database_name(null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user