Make WordPress Core

Changeset 52617


Ignore:
Timestamp:
01/21/2022 08:46:12 PM (2 years ago)
Author:
desrosj
Message:

Tests: Temporarily add expected exceptions to a few theme tests.

These tests are failing after [52614], which raised the minimum version of WordPress required for Twenty Twenty-Two. Since the value of $wp_version is still less than 5.9, these are failing.

After $wp_version is officially bumped to 5.9, these should be removed.

Props hellofromTonya, Clorith.
See #54318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9/tests/phpunit/tests/theme.php

    r52439 r52617  
    262262     */
    263263    public function test_switch_theme() {
     264        $this->expectException( 'WPDieException' );
    264265        $themes = get_themes();
    265266
     
    721722     */
    722723    public function test_block_theme_has_default_support( $support ) {
     724        $this->expectException( 'WPDieException' );
    723725        $this->helper_requires_block_theme();
    724726
     
    825827     */
    826828    public function test_block_theme_should_load_separate_core_block_assets_by_default() {
     829        $this->expectException( 'WPDieException' );
    827830        $this->helper_requires_block_theme();
    828831
Note: See TracChangeset for help on using the changeset viewer.