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
core/modules/node/tests/modules/node_test/node_test.module causes deprecation errors on PHP 8.1.
Steps to reproduce
Run \Drupal\Tests\node\Functional\PagePreviewTest
on PHP 8.1 (note the test triggers other deprecations but they are fixed in other issues and not as important)
Proposed resolution
Fix the node_test_node_view() hook implementation to not trigger a deprecation.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3241268-2.patch | 671 bytes | alexpott |
Comments
Comment #2
alexpottBefore
After
Comment #3
daffie CreditAttribution: daffie commentedThe function
node_test_node_view()
has been made for having a saved node. Adding the check should not change the testing.Looks good to me.
Comment #5
catchCommitted 6f6e3ce and pushed to 9.3.x. Thanks!