Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
cf7e2dbe
Commit
cf7e2dbe
authored
10 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2122761
by znerol, heddn: SessionHttpsTest only runs half the tests.
parent
c2ffb7b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/system/lib/Drupal/system/Tests/Session/SessionHttpsTest.php
+11
-0
11 additions, 0 deletions
...stem/lib/Drupal/system/Tests/Session/SessionHttpsTest.php
with
11 additions
and
0 deletions
core/modules/system/lib/Drupal/system/Tests/Session/SessionHttpsTest.php
+
11
−
0
View file @
cf7e2dbe
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment