protected function SessionHttpsTest::getUserLoginFormBuildId in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::getUserLoginFormBuildId()
- 9 core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php \Drupal\Tests\system\Functional\Session\SessionHttpsTest::getUserLoginFormBuildId()
Gets the form build ID for the user login form.
Return value
string The form build ID for the user login form.
2 calls to SessionHttpsTest::getUserLoginFormBuildId()
- SessionHttpsTest::loginHttp in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php - Log in a user via HTTP.
- SessionHttpsTest::loginHttps in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php - Log in a user via HTTPS.
File
- core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php, line 315
Class
- SessionHttpsTest
- Ensure that when running under HTTPS two session cookies are generated.
Namespace
Drupal\Tests\system\Functional\SessionCode
protected function getUserLoginFormBuildId() {
$this
->drupalGet('user/login');
return (string) $this
->getSession()
->getPage()
->findField('form_build_id');
}