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();
|
if(class_exists('SiteTree')) SiteTree::reset();
|
||||||
Hierarchy::reset();
|
Hierarchy::reset();
|
||||||
if(Controller::has_curr()) Controller::curr()->setSession(new Session(array()));
|
if(Controller::has_curr()) Controller::curr()->setSession(new Session(array()));
|
||||||
|
Security::$database_is_ready = null;
|
||||||
|
|
||||||
$this->originalTheme = SSViewer::current_theme();
|
$this->originalTheme = SSViewer::current_theme();
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ class Security extends Controller {
|
|||||||
*
|
*
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected static $database_is_ready = false;
|
static $database_is_ready = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set location of word list file
|
* Set location of word list file
|
||||||
|
Loading…
Reference in New Issue
Block a user