mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02: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()
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user