By mondrake on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
12.0.x
Introduced in version:
12.0.0
Issue links:
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