Change record status: 
Project: 
Introduced in branch: 
8.6.x
Introduced in version: 
8.6.0
Description: 

As a step towards isolating testing infrastructure from the simpletest module, some test-related classes and traits used by Drupal\KernelTests\KernelTestBase and Drupal\simpletest\KernelTestBase have been moved out of the simpletest module and into scopes more appropriate to their behavior.

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

Deprecated class -> New class

  • Drupal\simpletest\AssertContentTrait -> Drupal\KernelTests\AssertContentTrait
  • Drupal\simpletest\TestServiceProvider -> Drupal\KernelTests\TestServiceProvider
  • Drupal\simpletest\RouteProvider -> Drupal\KernelTests\RouteProvider

Related change record for BrowserTestBase: https://www.drupal.org/node/2884454