UserCreationTrait.php 553 B

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