mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Resetting Security::$database_is_ready state during tests (regression from a9509a610d
)
This commit is contained in:
parent
ca24120a5e
commit
a3d99b082d
@ -159,6 +159,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
if(class_exists('SiteTree')) SiteTree::reset();
|
||||
Hierarchy::reset();
|
||||
if(Controller::has_curr()) Controller::curr()->setSession(new Session(array()));
|
||||
Security::$database_is_ready = null;
|
||||
|
||||
$this->originalTheme = SSViewer::current_theme();
|
||||
|
||||
@ -770,7 +771,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
static function create_temp_db() {
|
||||
// Disable PHPUnit error handling
|
||||
restore_error_handler();
|
||||
|
||||
|
||||
// Create a temporary database, and force the connection to use UTC for time
|
||||
global $databaseConfig;
|
||||
$databaseConfig['timezone'] = '+0:00';
|
||||
|
@ -110,7 +110,7 @@ class Security extends Controller {
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected static $database_is_ready = false;
|
||||
static $database_is_ready = false;
|
||||
|
||||
/**
|
||||
* Set location of word list file
|
||||
|
Loading…
Reference in New Issue
Block a user