You are here

protected function SessionTestCase::httpsUrl in Drupal 7

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

Parameters

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

Return value

An absolute URL.

1 call to SessionTestCase::httpsUrl()
SessionTestCase::testSameSiteCookieAttributeNoneSecure in modules/simpletest/tests/session.test
Test SameSite attribute = None by default on Secure session cookies.

File

modules/simpletest/tests/session.test, line 479
Provides SimpleTests for core session handling functionality.

Class

SessionTestCase
@file Provides SimpleTests for core session handling functionality.

Code

protected function httpsUrl($url) {
  global $base_url;
  return $base_url . '/modules/simpletest/tests/https.php?q=' . $url;
}