Make WordPress Core

Changeset 51370


Ignore:
Timestamp:
07/07/2021 03:48:13 PM (5 years ago)
Author:
desrosj
Message:

Themes: Remove mention of “FSE” in Core.

“FSE” themes are block themes.

Fixes #53497.

Location:
trunk/tests/phpunit
Files:
6 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/block-editor.php

    r51369 r51370  
    348348         */
    349349        function test_get_block_editor_settings_theme_json_settings() {
    350                 switch_theme( 'fse' );
     350                switch_theme( 'block-theme' );
    351351
    352352                $post_editor_context = new WP_Block_Editor_Context( array( 'post' => get_post() ) );
  • trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php

    r51369 r51370  
    9797        public function test_translations_are_applied() {
    9898                add_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
    99                 load_textdomain( 'fse', realpath( DIR_TESTDATA . '/languages/themes/fse-pl_PL.mo' ) );
     99                load_textdomain( 'block-theme', realpath( DIR_TESTDATA . '/languages/themes/block-theme-pl_PL.mo' ) );
    100100
    101                 switch_theme( 'fse' );
     101                switch_theme( 'block-theme' );
    102102
    103103                $actual = WP_Theme_JSON_Resolver::get_theme_data();
    104104
    105                 unload_textdomain( 'fse' );
     105                unload_textdomain( 'block-theme' );
    106106                remove_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
    107107
    108                 $this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'fse' );
     108                $this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'block-theme' );
    109109                $this->assertSame(
    110110                        array(
     
    184184
    185185                // Switch to a theme that does have support.
    186                 switch_theme( 'fse' );
    187                 $fse = WP_Theme_JSON_Resolver::theme_has_support();
     186                switch_theme( 'block-theme' );
     187                $has_theme_json_support = WP_Theme_JSON_Resolver::theme_has_support();
    188188
    189189                $this->assertFalse( $default );
    190                 $this->assertTrue( $fse );
     190                $this->assertTrue( $has_theme_json_support );
    191191        }
    192192
Note: See TracChangeset for help on using the changeset viewer.