BUG Prevent logOut() from clearing site stage during bootstrapping due to flushed session

This commit is contained in:
Damian Mooyman 2017-11-03 16:22:11 +13:00
parent 38f7f87661
commit 1929ec46bb
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -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();
}