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
Automated tests are failing with Drupal Core 8.8 and later with a deprecation notice:
Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
Proposed resolution
Implement a $defaultTheme for the functional tests to resolve the deprecation notice.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3097604-2.patch | 880 bytes | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr as a volunteer commentedAttached patch implements a $defaultTheme for the functional tests to resolve the deprecation notice.
Comment #3
vuilThank you @idebr. Good job!
Comment #4
vuilI'll prepare to committed it. Thank you again.
Comment #5
vuilI added a parent issue (Drupal 9 compatibility).
Comment #7
vuilThe patch is committed! I close the issue as Fixed. Thank you.