trait SessionTestTrait

Provides methods to generate and get session name in tests.

Hierarchy

Deprecated

in drupal:8.1.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\SessionTestTrait instead.

See also

\Drupal\Tests

File

core/modules/simpletest/src/SessionTestTrait.php, line 17

Namespace

Drupal\simpletest
View source
trait SessionTestTrait {
  use BaseSessionTestTrait;

}

Members

Title Sort descending Modifiers Object type Summary
SessionTestTrait::$sessionName protected property The name of the session cookie.
SessionTestTrait::generateSessionName protected function Generates a session cookie name.
SessionTestTrait::getSessionName protected function Returns the session name in use on the child site.

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