mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Prevent logOut() from clearing site stage during bootstrapping due to flushed session
This commit is contained in:
parent
38f7f87661
commit
1929ec46bb
@ -100,6 +100,9 @@ class FunctionalTest extends SapphireTest implements TestOnly
|
|||||||
SSViewer::config()->update('theme_enabled', false);
|
SSViewer::config()->update('theme_enabled', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flush user
|
||||||
|
$this->logOut();
|
||||||
|
|
||||||
// Switch to draft site, if necessary
|
// Switch to draft site, if necessary
|
||||||
if (static::get_use_draft_site()) {
|
if (static::get_use_draft_site()) {
|
||||||
$this->useDraftSite();
|
$this->useDraftSite();
|
||||||
@ -109,8 +112,6 @@ class FunctionalTest extends SapphireTest implements TestOnly
|
|||||||
// basis.
|
// basis.
|
||||||
BasicAuth::protect_entire_site(false);
|
BasicAuth::protect_entire_site(false);
|
||||||
|
|
||||||
$this->logOut();
|
|
||||||
|
|
||||||
SecurityToken::disable();
|
SecurityToken::disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user