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 test class in core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php uses regular database queries instead of using entity queries.
Proposed resolution
Replace the regular database queries with an entity queries.
Remaining tasks
TBD
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
TBD
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff_4-10.txt | 747 bytes | narendra.rajwar27 |
#10 | 3152001-10.patch | 1.63 KB | narendra.rajwar27 |
#4 | interdiff_2-4.txt | 430 bytes | munish.kumar |
#4 | 3152001-4.patch | 1.58 KB | munish.kumar |
Comments
Comment #2
daffie CreditAttribution: daffie commentedPatch changes the db queries to entity queries.
Comment #3
snehalgaikwad CreditAttribution: snehalgaikwad as a volunteer and at QED42 for Drupal India Association commentedVerified this patch on local. Looks good to me.
Comment #4
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedHi @snehalgaikwad, I have reviewed the latest patch It has one coding standard-issue, So removing the unused use statement in this patch. So moving back to NR.
Comment #5
daffie CreditAttribution: daffie commented@munish.kumar: Good find!
Back to RTBC.
Comment #6
pratik_kambleComment #7
pratik_kambleComment #8
catchThese need ->accessCheck(FALSE)
Comment #9
narendra.rajwar27working on it
Comment #10
narendra.rajwar27Patch updated as per comment #8,
Please review.
Comment #11
daffie CreditAttribution: daffie commentedChange looks like what @catch requested.
Back to RTBC.
Comment #13
catchCommitted cb71f42 and pushed to 9.1.x. Thanks!