function SessionHttpsTestCase::httpUrl

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

Parameters

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

Return value

An absolute URL.

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

File

modules/simpletest/tests/session.test, line 834

Class

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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.