Needs work
Project:
Dashboard
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2024 at 15:01 UTC
Updated:
4 Apr 2026 at 12:19 UTC
Jump to comment: Most recent
Since the arrival of #540008: Add a container parameter that can remove the special behavior of UID#1, it is possible to disable the super user access policy added by default to user 1.
We need to add tests to confirm that Dashboard behaves as expected in that scenario.
See https://www.drupal.org/node/2910500 for instructions about how to proceed.
New tests will be added once 10.3 core version is released.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
pooja_sharma commentedAdded the permission for createUser() & removed the unrelated code for all test.
Please review, moving NR.
Comment #5
pooja_sharma commentedComment #6
plopescThank you for your work on this one @pooja_sharma.
Checked the MR and might be that the issue summary is not explaining the needs properly.
We are not expecting to refactor the way tests work with user and roles, that could be discussed in a different issue, though.
What we need for this issue is to create a new test for scenarios where the Super user access policy is turned off and confirm that module is still working as expected. See change record.
Comment #8
pooja_sharma commentedTried to add test coverage with super user policy disabled, tried to test the functionality of some piece of code of module , apart from it nothing seems to left , correct me if I 'm missing anything.
Please review, moving NR.
Comment #9
penyaskitoAt the very least needs reroll.