You are here

protected function SessionHttpsTest::httpUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Session/SessionHttpsTest.php \Drupal\system\Tests\Session\SessionHttpsTest::httpUrl()

Builds a URL for submitting a mock HTTP request to HTTPS test environments.

Parameters

$url: A Drupal path such as 'user/login'.

Return value

URL prepared for the http.php mock front controller.

2 calls to SessionHttpsTest::httpUrl()
SessionHttpsTest::loginHttp in core/modules/system/src/Tests/Session/SessionHttpsTest.php
Log in a user via HTTP.
SessionHttpsTest::testHttpsSession in core/modules/system/src/Tests/Session/SessionHttpsTest.php

File

core/modules/system/src/Tests/Session/SessionHttpsTest.php, line 251
Contains \Drupal\system\Tests\Session\SessionHttpsTest.

Class

SessionHttpsTest
Ensure that when running under HTTPS two session cookies are generated.

Namespace

Drupal\system\Tests\Session

Code

protected function httpUrl($url) {
  return 'core/modules/system/tests/http.php/' . $url;
}