UserCreationTrait.php 788 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Drupal\simpletest;
  3. @trigger_error(__NAMESPACE__ . '\UserCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use Drupal\Tests\user\Traits\UserCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED);
  4. use Drupal\Tests\user\Traits\UserCreationTrait as BaseUserCreationTrait;
  5. /**
  6. * Provides methods to create additional test users and switch the currently
  7. * logged in one.
  8. *
  9. * This trait is meant to be used only by test classes extending
  10. * \Drupal\simpletest\TestBase.
  11. *
  12. * @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. Use
  13. * Drupal\Tests\user\Traits\UserCreationTrait instead.
  14. *
  15. * @see https://www.drupal.org/node/2884454
  16. */
  17. trait UserCreationTrait {
  18. use BaseUserCreationTrait;
  19. }