function SessionTestTrait::getSessionName

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

2 calls to SessionTestTrait::getSessionName()
BrowserTestBase::getSessionCookies in core/tests/Drupal/Tests/BrowserTestBase.php
Get session cookies from current session.
WebTestBase::curlHeaderCallback in core/modules/simpletest/src/WebTestBase.php
Reads headers and registers errors received from the tested site.

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.