Skip to content

Tests: Fix font-face test setup and teardown - #13196

Draft
sirreal wants to merge 1 commit into
WordPress:trunkfrom
sirreal:agent/test-order-fonts-isolation
Draft

Tests: Fix font-face test setup and teardown#13196
sirreal wants to merge 1 commit into
WordPress:trunkfrom
sirreal:agent/test-order-fonts-isolation

Conversation

@sirreal

@sirreal sirreal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Restores the font-face theme-root fixture and corrects the theme-switching flag cleanup so font-face tests do not inherit process state.
  • Keeps the changes confined to PHPUnit tests and fixtures.

Verification

  • 50 consecutive randomized fonts-group runs passed; each completed 228 tests and 926 assertions.
  • Replayed the original failing seed and focused contaminator/consumer cases during diagnosis.
  • PHP syntax checks passed for every changed PHP file.
  • git diff --check passed.

Trac: https://core.trac.wordpress.org/ticket/65893

`self::$theme_root` should be reverted in `WP_Font_Face_UnitTestCase`

`self::$requires_switch_theme_fixtures` needs to be set before calling
`parent::set_up_before_class()`.
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