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/path/tests/src/Functional/PathTaxonomyTermTest.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 |
---|---|---|---|
#14 | interdiff-7-14.txt | 610 bytes | Hardik_Patel_12 |
#14 | 3151959-14.patch | 1.16 KB | Hardik_Patel_12 |
Comments
Comment #2
daffie CreditAttribution: daffie commentedPatch changes the db query to an entity query.
Comment #4
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedLooks like a random test failure, so re-queued.
Comment #5
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #6
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedVerified this patch on local. Looks good to me.
Comment #7
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedJust small thing remaining, removing unused statement
use Drupal\Core\Database\Database;
, otherwise all is good to me.Comment #8
daffie CreditAttribution: daffie commented@Hardik_Patel_12: Good find!
Back to RTBC.
Comment #10
munish.kumar CreditAttribution: munish.kumar as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedAll the test cases are passed now, and the last patch only contains the small change so moving back to RTBC
Comment #11
pratik_kambleComment #12
pratik_kambleComment #13
catchThis needs ->accessCheck(FALSE)
Comment #14
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedAdding the requested ->accessCheck(FALSE) to EntityQuery.
Comment #15
daffie CreditAttribution: daffie commentedChange looks like what @catch requested.
Back to RTBC.
Comment #17
catchCommitted d8d9481 and pushed to 9.1.x. Thanks!