Change record status: 
Project: 
Introduced in branch: 
8.4.x
Introduced in version: 
8.4.0-beta2
Description: 

As a step towards isolating testing infrastructure from the simpletest module, various test traits have been moved out of the simpletest module and into scopes more appropriate to their behavior.

Test traits which implement module-specific behaviors have been moved into the scope of those modules.

We leave deprecated backwards-compatible stub traits in the old locations, to minimize disruption.

Deprecated trait -> New trait

  • Drupal\simpletest\AssertHelperTrait -> Drupal\Tests\AssertHelperTrait
  • Drupal\simpletest\BlockCreationTrait -> Drupal\Tests\block\Traits\BlockCreationTrait
  • Drupal\simpletest\ContentTypeCreationTrait -> Drupal\Tests\node\Traits\ContentTypeCreationTrait
  • Drupal\simpletest\NodeCreationTrait -> Drupal\Tests\node\Traits\NodeCreationTrait
  • Drupal\simpletest\UserCreationTrait -> Drupal\Tests\user\Traits\UserCreationTrait

Related change record for KernelTestBase: https://www.drupal.org/node/2943146

Impacts: 
Module developers