Changeset 55146 for trunk/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 01/26/2023 06:37:47 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r55008 r55146 2646 2646 public function test_get_editor_settings_custom_units_can_be_disabled() { 2647 2647 add_theme_support( 'custom-units', array() ); 2648 $actual = WP_Theme_JSON::get_from_editor_settings( get_ default_block_editor_settings() );2648 $actual = WP_Theme_JSON::get_from_editor_settings( get_classic_theme_supports_block_editor_settings() ); 2649 2649 remove_theme_support( 'custom-units' ); 2650 2650 … … 2663 2663 public function test_get_editor_settings_custom_units_can_be_enabled() { 2664 2664 add_theme_support( 'custom-units' ); 2665 $actual = WP_Theme_JSON::get_from_editor_settings( get_ default_block_editor_settings() );2665 $actual = WP_Theme_JSON::get_from_editor_settings( get_classic_theme_supports_block_editor_settings() ); 2666 2666 remove_theme_support( 'custom-units' ); 2667 2667 … … 2680 2680 public function test_get_editor_settings_custom_units_can_be_filtered() { 2681 2681 add_theme_support( 'custom-units', 'rem', 'em' ); 2682 $actual = WP_Theme_JSON::get_from_editor_settings( get_ default_block_editor_settings() );2682 $actual = WP_Theme_JSON::get_from_editor_settings( get_classic_theme_supports_block_editor_settings() ); 2683 2683 remove_theme_support( 'custom-units' ); 2684 2684
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)