Change record status: 
Project: 
Introduced in branch: 
12.0.x
Introduced in version: 
12.0.0
Description: 

Drupal\Tests\TestRequirementsTrait has been subject to deprecations and removals in last majors, and is now deprecated itself.

Calling the ::getDrupalRoot() method is no longer necessary, tests extending Drupal base classes can access directly the $this->root property that is automatically initialized when accessed for the first time.

Example

Before:

    $this->root = static::getDrupalRoot();
    chdir($this->root);

After:

    chdir($this->root);
Impacts: 
Module developers