Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC/Unit tests] Deprecated theme in unit test base class #76

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Nov 6, 2022

The theme is deprecated in 9.5 and removed in 10, but the new one is not available until 9.3, however this only affects community Mink unit tests. See e.g. https://git.drupalcode.org/project/drupal/-/commit/689225c

Apparently there was an even earlier decision that you have to specify something: https://www.drupal.org/node/3083055. So I can't just leave it blank to get a default: Drupal\Tests\BrowserTestBase::$defaultTheme is required. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.

See e.g. for a test run using this PR: https://github.com/SemperIT/CiviCARROT/actions/runs/3406409291/jobs/5665075348

@demeritcowboy demeritcowboy changed the title [WIP] [NFC/Unit tests] Deprecated theme in unit test base class [NFC/Unit tests] Deprecated theme in unit test base class Nov 6, 2022
@seamuslee001 seamuslee001 merged commit d1f09b9 into civicrm:master Jan 18, 2023
@demeritcowboy demeritcowboy deleted the classy branch January 18, 2023 20:55
@demeritcowboy
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants