Skip to content
Snippets Groups Projects
Commit cf7e2dbe authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2122761 by znerol, heddn: SessionHttpsTest only runs half the tests.

parent c2ffb7b6
No related branches found
No related tags found
No related merge requests found
......@@ -113,11 +113,20 @@ protected function testHttpsSession() {
// Clear browser cookie jar.
$this->cookies = array();
}
/**
* Tests sessions in SSL mixed mode.
*/
protected function testMixedModeSslSession() {
if ($this->request->isSecure()) {
// The functionality does not make sense when running on HTTPS.
return;
}
else {
$secure_session_name = 'S' . session_name();
$insecure_session_name = session_name();
}
// Enable secure pages.
$this->settingsSet('mixed_mode_sessions', TRUE);
......@@ -128,6 +137,8 @@ protected function testHttpsSession() {
);
$this->writeSettings($settings);
$user = $this->drupalCreateUser(array('access administration pages'));
$this->curlClose();
// Start an anonymous session on the insecure site.
$session_data = $this->randomName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment