Changeset 51370
- Timestamp:
- 07/07/2021 03:48:13 PM (3 years ago)
- 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 348 348 */ 349 349 function test_get_block_editor_settings_theme_json_settings() { 350 switch_theme( ' fse' );350 switch_theme( 'block-theme' ); 351 351 352 352 $post_editor_context = new WP_Block_Editor_Context( array( 'post' => get_post() ) ); -
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r51369 r51370 97 97 public function test_translations_are_applied() { 98 98 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' ) ); 100 100 101 switch_theme( ' fse' );101 switch_theme( 'block-theme' ); 102 102 103 103 $actual = WP_Theme_JSON_Resolver::get_theme_data(); 104 104 105 unload_textdomain( ' fse' );105 unload_textdomain( 'block-theme' ); 106 106 remove_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) ); 107 107 108 $this->assertSame( wp_get_theme()->get( 'TextDomain' ), ' fse' );108 $this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'block-theme' ); 109 109 $this->assertSame( 110 110 array( … … 184 184 185 185 // 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(); 188 188 189 189 $this->assertFalse( $default ); 190 $this->assertTrue( $ fse);190 $this->assertTrue( $has_theme_json_support ); 191 191 } 192 192
Note: See TracChangeset
for help on using the changeset viewer.