MINOR Resetting Security::$database_is_ready state during tests (regression from a9509a610d)

This commit is contained in:
Ingo Schommer 2012-04-11 17:22:55 +02:00
parent ca24120a5e
commit a3d99b082d
2 changed files with 3 additions and 2 deletions

View File

@ -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';

View File

@ -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