mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed PHP notice that appeared the first time around the while(!$dbname || $dbConn->databaseExists($dbname)) loop ($dbname doesn't exist yet).
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40165 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e6ed1b3dd5
commit
2c3cea4df0
@ -49,6 +49,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
|||||||
|
|
||||||
// Create a temporary database
|
// Create a temporary database
|
||||||
$dbConn = DB::getConn();
|
$dbConn = DB::getConn();
|
||||||
|
$dbname = 'tmpdb' . rand(1000000,9999999);
|
||||||
while(!$dbname || $dbConn->databaseExists($dbname)) {
|
while(!$dbname || $dbConn->databaseExists($dbname)) {
|
||||||
$dbname = 'tmpdb' . rand(1000000,9999999);
|
$dbname = 'tmpdb' . rand(1000000,9999999);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user