function SessionTestTrait::getSessionName
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/SessionTestTrait.php \Drupal\Tests\SessionTestTrait::getSessionName()
- 11.x core/tests/Drupal/Tests/SessionTestTrait.php \Drupal\Tests\SessionTestTrait::getSessionName()
Returns the session name in use on the child site.
Return value
string The name of the session cookie.
3 calls to SessionTestTrait::getSessionName()
- SessionExistsCacheContextTest::assertSessionCookieOnClient in core/
modules/ system/ tests/ src/ Functional/ Cache/ SessionExistsCacheContextTest.php - Asserts whether a session cookie is present on the client or not.
- SessionHttpsTest::setUp in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionHttpsTest.php - SessionTest::testDataPersistence in core/
modules/ system/ tests/ src/ Functional/ Session/ SessionTest.php - Tests data persistence via the session_test module callbacks.
File
-
core/
tests/ Drupal/ Tests/ SessionTestTrait.php, line 36
Class
- SessionTestTrait
- Provides methods to generate and get session name in tests.
Namespace
Drupal\TestsCode
protected function getSessionName() {
return $this->sessionName;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.