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
A follow up to to #2924538: [META] Remove all usages of drupal_set_message and drupal_get_messages fix the naming of:
- The
system_test.drupal_set_message
route - The
/system-test/drupal-set-message
path - The
SystemTestController::drupalSetMessageTest()
method - The
\Drupal\Tests\system\Functional\Bootstrap\DrupalSetMessageTest()
test class
None of these things test drupal_set_message()
anymore.
Proposed resolution
Update the naming so it no longer directly references the refactored drupal_set_message()
function.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | naming-fix-2971145-03.patch | 3.41 KB | voleger |
Comments
Comment #2
idebr CreditAttribution: idebr at ezCompany commentedComment #3
volegerComment #4
martin107 CreditAttribution: martin107 as a volunteer commentedThe idea behind the issue is sound.
All these changes are good.
There are no coding standard errors in the test results.
so +1 from me.
Comment #5
idebr CreditAttribution: idebr at ezCompany commentedUpdated the parent issue reference to #2924538: [META] Remove all usages of drupal_set_message and drupal_get_messages
Not sure this change is necessary, but since drupalGet() takes a Url or a path string, I suppose it does not matter all that much.
Comment #6
alexpottWe need to fix the classdoc of
DrupalMessengerServiceTest
...Comment #7
alexpottCommitted 0074150 and pushed to 8.6.x. Thanks!
Fixed on commit.