function SessionTestCase::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.

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 543

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;
}

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