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
Some of the current calls to AssertLegacyTrait::assert(No)Field() in functional tests still have a message passed in, even if the methods do not take that in. We need to remove the messages from the calls and inline them as comments where appropriate.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#22 | rawdiff_18-21.txt | 2.08 KB | mondrake |
#21 | 3142755-21.patch | 31.47 KB | mondrake |
Comments
Comment #2
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedComment #3
Ramya Balasubramanian CreditAttribution: Ramya Balasubramanian at Srijan | A Material+ Company for Drupal India Association commentedComment #4
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commentedComment #5
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commentedComment #7
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commentedComment #8
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commentedEntityViewsDataTest
contains its ownassertField
method. That's why the test was failing.Comment #9
mondrakeLGTM, thank you.
Comment #10
xjmNice work -- thank you. Just a few suggestions and grammar fixes:
I'd just add one comment above this hunk that says "Ensure that the file upload, remote URL, and refresh fields exist."
It's asserting the opposite. :) I think we can just drop the message here; no comment needed.
I think we can just drop this one as well (what is an entity type file?).
These comments are missing the verb (is found). Edit: Also needs to be the browser language code and the Drupal language code for the last two.
These two are missing an article (the node add page). Also it's only checking the node add page, not the node edit page.
I think we can drop the comments here as well.
Comment #11
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commentedComment #12
sja112 CreditAttribution: sja112 at Srijan | A Material+ Company for Srijan | A Material+ Company, Drupal India Association commented@xjm, thanks for the review.
I have changed the patch as per your suggestions.
Comment #13
ketikagrover CreditAttribution: ketikagrover commentedAs per the #10 xjm suggestions changes are updated in the #12
I checked these changes on local via applying patch and it seems good to me.
Moving this to RTBC
Thanks
Comment #14
ketikagrover CreditAttribution: ketikagrover commentedComment #15
ketikagrover CreditAttribution: ketikagrover commentedComment #16
alexpottI think the original test author meant to assertFieldValue() - let's see what happens when we change this.
Comment #17
alexpottYep and one of them we not as expected - at least now the test makes sense.
Comment #18
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedRerolled patch #17 as it failed to apply, please review.
Comment #19
mondrakeRemoves messages that are irrelevant now, and fixes a few assertions that were not asserting what they should.
Comment #20
catchNeeds a re-roll.
Comment #21
mondrakeReroll.
Comment #22
mondrakeComment #24
catchCommitted d7300cc and pushed to 9.1.x. Thanks!