SessionTestTrait.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/Tests/SessionTestTrait.php
Same filename in other branches
  1. 9 core/tests/Drupal/Tests/SessionTestTrait.php
  2. 10 core/tests/Drupal/Tests/SessionTestTrait.php
  3. 11.x core/tests/Drupal/Tests/SessionTestTrait.php

Namespace

Drupal\simpletest

File

core/modules/simpletest/src/SessionTestTrait.php

View source
<?php

namespace Drupal\simpletest;

@trigger_error(__NAMESPACE__ . '\\SessionTestTrait is deprecated in Drupal 8.1.1 will be removed before 9.0.0. Use \\Drupal\\Tests\\SessionTestTrait instead.', E_USER_DEPRECATED);
use Drupal\Tests\SessionTestTrait as BaseSessionTestTrait;

/**
 * Provides methods to generate and get session name in tests.
 *
 * @deprecated in drupal:8.1.1 and is removed from drupal:9.0.0. Use
 *   \Drupal\Tests\SessionTestTrait instead.
 *
 * @see \Drupal\Tests
 */
trait SessionTestTrait {
    use BaseSessionTestTrait;

}

Traits

Title Deprecated Summary
SessionTestTrait

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

Provides methods to generate and get session name in tests.

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