Decide default theme for testing

Created on 13 September 2019, over 5 years ago
Updated 2 May 2024, 12 months ago

Problem/Motivation

Today, the default theme when writing tests is classy, which is likely deprecated in the future #3050378: [meta] Replace Classy with a starterkit theme . For this, and various other reasons Classy is decoupled from the testing infrastructure: #2352949: Deprecate using Classy as the default theme for the 'testing' profile . Until now, we assume there isn't a default value in Drupal 9 and it is required for all test cases not specifying installation profile to specify which theme they use in their tests. However, “no default” is just one of the possible choices.

The 3 possible choices:

Default: opt-in vs opt-out?

There might be a way to be both explicit and provide a default value. We could set a default value that is set only if the test case has explicitly opted into the default. One option would be provide TESTING_DEFAULT_THEME constant which would allow test cases to use the current default value. This would remove the need to manually update testing theme on major releases.

Proposed resolution

TBD

Remaining tasks

  • Decide what is the default theme for testing in Drupal 9 if any
  • Decide if the default theme is set explicitly or implicitly

User interface changes

None

API changes

TBD

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 4 hours ago

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024