In π Add a container parameter that can remove the special behavior of UID#1 Fixed an approach was taken where we can simply flag tests that are failing if we turn off user 1's super user powers, so that they can be taken care of in a followup. This issue is to collect all of these followups.
The goal is to have no tests in Drupal core that rely on UID1's special privileges so that we:
Go into any of the tests flagged with:
/**
* {@inheritdoc}
*
* @todo Remove and fix test to not rely on super user.
* @see https://www.drupal.org/project/drupal/issues/3437620
*/
And:
Assign the right permissions to make the test go green without the super user access policy. Those few tests that specifically test said policy can obviously stay, but will be removed along with the policy in D12.
There is one special case: core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php, which is responsible for all Nightwatch tests. This may become a meta issue.
core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php
Active
11.0 π₯
base system