Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More feedback on which temp db gets created

  • Loading branch information...
commit b170e621c965b3718f8a532d3808c0c0e5513e33 1 parent 6c9be90
@chillu chillu authored
View
4 src/SilverStripe/BehatExtension/Context/Initializer/SilverStripeAwareInitializer.php
@@ -162,8 +162,8 @@ protected function bootstrap($frameworkPath, $frameworkHost)
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 @@ protected function initializeTempDb()
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.