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
In #2121713: Move drupal_html_id() and drupal_html_class() to Drupal\Component\Utility, HTML-related code was moved into a utility class under the Component namespace.
Somehow the unit tests ended up under the Core namespace.
Furthermore, in #2294503: Component Utilities unit test cleanups. some extra tests were created for the Html class.
Proposed resolution
Move the tests to the Component namespace.
Remaining tasks
User interface changes
API changes
Beta phase evaluation
Unfrozen changes | Unfrozen because it fixes a namespace error in automated tests. |
---|
Comment | File | Size | Author |
---|---|---|---|
#1 | 2392673_1.patch | 713 bytes | Mile23 |
Comments
Comment #1
Mile23Moves
Drupal\Tests\Core\Utility\HtmlTest
toDrupal\Tests\Component\Utility\HtmlTest,
updates namespaces and docblocks.Comment #2
Mile23Comment #3
jhodgdonLooks pretty straightforward and issue summary already has beta eval, great!
Comment #5
Mile23SessionTest, the unrelated test failing above, passes locally, so I'm re-testing.
Comment #7
dawehnerAlright.
Comment #8
alexpottCommitted eb9e9e3 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation for to the issue summary.