You are here

protected function SessionHttpsTest::httpUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::httpUrl()
  2. 9 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\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/tests/src/Functional/Session/SessionHttpsTest.php
Log in a user via HTTP.
SessionHttpsTest::testHttpsSession in core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php
Tests HTTPS sessions.

File

core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php, line 290

Class

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

Namespace

Drupal\Tests\system\Functional\Session

Code

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