function SessionHttpsTest::httpsUrl
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::httpsUrl()
- 10 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::httpsUrl()
- 11.x core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::httpsUrl()
Builds a URL for submitting a mock HTTPS request to HTTP test environments.
Parameters
$url: A Drupal path such as 'user/login'.
Return value
URL prepared for the https.php mock front controller.
2 calls to SessionHttpsTest::httpsUrl()
- SessionHttpsTest::loginHttps in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php - Log in a user via HTTPS.
- SessionHttpsTest::testHttpsSession in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php - Tests HTTPS sessions.
File
-
core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php, line 269
Class
- SessionHttpsTest
- Ensure that when running under HTTPS two session cookies are generated.
Namespace
Drupal\Tests\system\Functional\SessionCode
protected function httpsUrl($url) {
return 'core/modules/system/tests/https.php/' . $url;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.