Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Remove $GLOBALS['user'] from simple tests.
/core/modules/system/lib/Drupal/system/Tests/*
This is because of this in the Change Record
"NOTE: The global $user variable still exists as it is necessary for certain portions of the installer and simpletest..."
Needs a workaround to get it out of there.
Comments
Comment #1
xjmThanks for your work on this! We're going to do these in a single patch where possible. See #2163203: Remove calls to deprecated global $user wherever possible (outside bootstrap and authentication). Please help ensure everyone who's collaborated on these is added to a proposed commit message in that issue's summary.