You are here

protected function SessionTestTrait::getSessionName in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/SessionTestTrait.php \Drupal\Tests\SessionTestTrait::getSessionName()
  2. 9 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.

5 calls to SessionTestTrait::getSessionName()
BrowserTestBase::getSessionCookies in core/tests/Drupal/Tests/BrowserTestBase.php
Get session cookies from current session.
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.
StackSessionHandlerIntegrationTest::testRequest in core/modules/system/tests/src/Functional/Session/StackSessionHandlerIntegrationTest.php
Tests a request.

File

core/tests/Drupal/Tests/SessionTestTrait.php, line 36

Class

SessionTestTrait
Provides methods to generate and get session name in tests.

Namespace

Drupal\Tests

Code

protected function getSessionName() {
  return $this->sessionName;
}