Problem/Motivation
The test class in core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php uses a regular database query instead of using an entity query.
Proposed resolution
Replace the regular database query with an entity query.
Remaining tasks
TBD
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
TBD
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3151981-9.patch | 609 bytes | daffie |
Comments
Comment #2
daffie commentedPatch changes the db query to an entity query.
Comment #3
hardik_patel_12 commentedVerified this patch on local. Looks good to me.
Comment #4
pratik_kambleComment #5
pratik_kambleComment #7
catchCommitted cf1010f and pushed to 9.1.x. Thanks!
Comment #8
catchThis needs an ->accessCheck(FALSE). We're querying what's in the database as opposed to what's available to the current user.
Comment #9
daffie commentedAdding the requested
->accessCheck(FALSE)to the EntityQuery.Comment #10
hardik_patel_12 commentedBack to RTBC , accessCheck is added to query as suggested by @catch.
Comment #12
catchCommitted 595c96e and pushed to 9.1.x. Thanks!