protected function SessionTestTrait::getSessionName in Drupal 9
Same name and namespace in other branches
- 8 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.
6 calls to SessionTestTrait::getSessionName()
- BigPipeTest::assertSessionCookieExists in core/modules/ big_pipe/ tests/ src/ Functional/ BigPipeTest.php 
- Asserts whether a session cookie exists or not.
- BigPipeTest::setCsrfTokenSeedInTestEnvironment in core/modules/ big_pipe/ tests/ src/ Functional/ BigPipeTest.php 
- Ensures CSRF tokens can be generated for the current user's session.
- 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 
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;
}