Follow up for 1. in #1658846-187: Add language support to node access grants and records
Problem/Motivation
Missing test coverage for grants. We only have tests for denies.
Proposed resolution
Add more coverage for the case where there are actually explicit "public" grant records written from another module.
Remaining tasks
- (optional) Check this issue summary for accuracy
- (optional) Add some details to make this able to be picked up by someone new
- Add the tests. See contributor task document for writing tests: http://drupal.org/node/1468170
User interface changes
No UI changes.
API changes
No API changes.
Original report by @xjm
We agreed earlier:
2. Add more coverage for the case where there are actually explicit "public" grant records written from another module or write a follow-up issue.
Fully agree, but as this is not yet covered currently I think we can make a follow up Issue: "Refactor Core Node Access Tests to not only test for denies, also test for public grants"
Let's file this and link it here.
Comments
Comment #14
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #15
acbramley commentedTaking a look at what we currently have I think this can be closed. There's very thorough testing around node access and languages in NodeAccessLanguageAwareTest, NodeAccessLanguageAwareCombinationTest, NodeAccessLanguageTest, etc.
Comment #16
xjm@acbramley, are you sure? This was a followup from the issue that added those exact tests, specifically. Did we add test coverage for the specific cases listed in the IS since I first identified the deficiency with the tests back then? :)
Comment #17
acbramley commented@xjm just looking at one example I listed in #15 - https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/node/... this looks to me to be testing both grants and denies.
Comment #18
smustgrave commented@xjm that work?