By mondrake on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Issue links:
Description:
Drupal\Tests\TestRequirementsTrait has been subject to deprecations and removals in last majors, and is now deprecated itself. The ::getDrupalRoot() method is also deprecated.
Calling the ::getDrupalRoot() method is no longer necessary, tests extending Drupal base classes can access directly $this->root that is automatically initialized during the test set-up.
Example
Before:
$this->root = static::getDrupalRoot();
chdir($this->root);
After:
chdir($this->root);
Impacts:
Module developers