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. Please see https://www.drupal.org/node/3083055

So, please add to each test class the following property:

+  /**
+   * {@inheritdoc}
+   */
+  protected $defaultTheme = 'stark';

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.

CommentFileSizeAuthor
#2 3100607-1.patch407 bytesLeonardo Le
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vuil created an issue. See original summary.

Leonardo Le’s picture

This is my patch

Leonardo Le’s picture

Status: Active » Needs review
vuil’s picture

Status: Needs review » Reviewed & tested by the community

Thank you @leonardo-le! The patch will be committed.

  • vuil committed 77b1d6a on 8.x-1.x authored by Leonardo Le
    Issue #3100607 by Leonardo Le, vuil: Automated tests are failing with...
vuil’s picture

Status: Reviewed & tested by the community » Fixed

I close the issue as Fixed. Thank you!

This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.