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.
Problem/Motivation
The current tests use the "administer users" and "administer permissions" and then change roles via /user/%/edit which doesn't actually test the /user/%/roles page at all.
Proposed resolution
Add new tests to ensure it works.
Abstract out the role building logic from addRoleDelegationElement() so we can test it in isolation rather than through the form.
Remaining tasks
Code/review
Comments
Comment #2
benjy CreditAttribution: benjy at PreviousNext commentedComment #3
benjy CreditAttribution: benjy at PreviousNext commentedThese tests were committed in #2693405: Change module architecture to grant extra access instead of removing existing access