trait SessionTestTrait in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/SessionTestTrait.php \Drupal\Tests\SessionTestTrait
- 8 core/modules/simpletest/src/SessionTestTrait.php \Drupal\simpletest\SessionTestTrait
Provides methods to generate and get session name in tests.
Hierarchy
- trait \Drupal\simpletest\SessionTestTrait uses SessionTestTrait
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\simpletestView source
trait SessionTestTrait {
use BaseSessionTestTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SessionTestTrait:: |
protected | property | The name of the session cookie. | |
SessionTestTrait:: |
protected | function | Generates a session cookie name. | |
SessionTestTrait:: |
protected | function | Returns the session name in use on the child site. |