protected function SessionHttpsTestCase::httpsUrl

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.

2 calls to SessionHttpsTestCase::httpsUrl()
SessionHttpsTestCase::testEmptySessionId in drupal/modules/simpletest/tests/session.test
Tests that empty session IDs do not cause unrelated sessions to load.
SessionHttpsTestCase::testHttpsSession in drupal/modules/simpletest/tests/session.test

File

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

Class

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

Code

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