protected function SessionHttpsTestCase::httpUrl
7.x session.test | protected SessionHttpsTestCase::httpUrl($url) |
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.
1 call to SessionHttpsTestCase::httpUrl()
- SessionHttpsTestCase::testHttpsSession in drupal-7.x/
modules/ simpletest/ tests/ session.test
File
- drupal-7.x/
modules/ simpletest/ tests/ session.test, line 525 - Provides SimpleTests for core session handling functionality.
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;
}