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
This is a follow-up to #2801817: Inject services into SimpletestTestForm and functional cleanup for the test_discovery service which deprecated these simpletest module functions:
simpletest_test_get_all()
simpletest_classloader_register()
That issue marked these functions as deprecated and removed their usages in simpletest's UI form.
This issue removes the remaining usages from run-tests.sh.
Proposed resolution
Replace usages in run-tests.sh with replacements, based on the test_discovery service provided by the simpletest module.
Trigger deprecation errors from these functions.
Add a test to prove the deprecation errors work.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2945247_2.patch | 4.69 KB | Mile23 |
Comments
Comment #2
Mile23Added @trigger_error() in places, added a test that proves the deprecations work, and changes the usages of the deprecated functions in run-tests.sh.
Comment #3
Mile23Comment #4
Mile23Comment #5
borisson_Looks good to me, nice to see that tests are added for this.
Comment #6
alexpottCommitted 42e7150 and pushed to 8.6.x. Thanks!