mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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);
|
||||
}
|
||||
|
||||
// Flush user
|
||||
$this->logOut();
|
||||
|
||||
// Switch to draft site, if necessary
|
||||
if (static::get_use_draft_site()) {
|
||||
$this->useDraftSite();
|
||||
@ -109,8 +112,6 @@ class FunctionalTest extends SapphireTest implements TestOnly
|
||||
// basis.
|
||||
BasicAuth::protect_entire_site(false);
|
||||
|
||||
$this->logOut();
|
||||
|
||||
SecurityToken::disable();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user