Issue #2122761 by znerol, heddn: SessionHttpsTest only runs half the tests.
parent
c2ffb7b63a
commit
cf7e2dbed4
|
|
@ -113,11 +113,20 @@ class SessionHttpsTest extends WebTestBase {
|
||||||
|
|
||||||
// Clear browser cookie jar.
|
// Clear browser cookie jar.
|
||||||
$this->cookies = array();
|
$this->cookies = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests sessions in SSL mixed mode.
|
||||||
|
*/
|
||||||
|
protected function testMixedModeSslSession() {
|
||||||
if ($this->request->isSecure()) {
|
if ($this->request->isSecure()) {
|
||||||
// The functionality does not make sense when running on HTTPS.
|
// The functionality does not make sense when running on HTTPS.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$secure_session_name = 'S' . session_name();
|
||||||
|
$insecure_session_name = session_name();
|
||||||
|
}
|
||||||
|
|
||||||
// Enable secure pages.
|
// Enable secure pages.
|
||||||
$this->settingsSet('mixed_mode_sessions', TRUE);
|
$this->settingsSet('mixed_mode_sessions', TRUE);
|
||||||
|
|
@ -128,6 +137,8 @@ class SessionHttpsTest extends WebTestBase {
|
||||||
);
|
);
|
||||||
$this->writeSettings($settings);
|
$this->writeSettings($settings);
|
||||||
|
|
||||||
|
$user = $this->drupalCreateUser(array('access administration pages'));
|
||||||
|
|
||||||
$this->curlClose();
|
$this->curlClose();
|
||||||
// Start an anonymous session on the insecure site.
|
// Start an anonymous session on the insecure site.
|
||||||
$session_data = $this->randomName();
|
$session_data = $this->randomName();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue