Changeset 51305 for branches/5.8/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 07/02/2021 12:24:08 PM (4 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/tests/phpunit/tests/theme/wpThemeJson.php
r51198 r51305 17 17 * @ticket 52991 18 18 */ 19 function test_get_settings() {19 public function test_get_settings() { 20 20 $theme_json = new WP_Theme_JSON( 21 21 array( … … 65 65 } 66 66 67 function test_get_settings_presets_are_keyed_by_origin() {67 public function test_get_settings_presets_are_keyed_by_origin() { 68 68 $core_origin = new WP_Theme_JSON( 69 69 array( … … 190 190 } 191 191 192 function test_get_stylesheet() {192 public function test_get_stylesheet() { 193 193 $theme_json = new WP_Theme_JSON( 194 194 array( … … 308 308 } 309 309 310 function test_get_stylesheet_preset_classes_work_with_compounded_selectors() {310 public function test_get_stylesheet_preset_classes_work_with_compounded_selectors() { 311 311 $theme_json = new WP_Theme_JSON( 312 312 array( … … 335 335 } 336 336 337 function test_get_stylesheet_preset_rules_come_after_block_rules() {337 public function test_get_stylesheet_preset_rules_come_after_block_rules() { 338 338 $theme_json = new WP_Theme_JSON( 339 339 array( … … 656 656 * @ticket 52991 657 657 */ 658 function test_get_from_editor_settings() {658 public function test_get_from_editor_settings() { 659 659 $input = array( 660 660 'disableCustomColors' => true, … … 732 732 * @ticket 52991 733 733 */ 734 function test_get_editor_settings_no_theme_support() {734 public function test_get_editor_settings_no_theme_support() { 735 735 $input = array( 736 736 '__unstableEnableFullSiteEditingBlocks' => false, … … 787 787 * @ticket 52991 788 788 */ 789 function test_get_editor_settings_blank() {789 public function test_get_editor_settings_blank() { 790 790 $expected = array( 791 791 'version' => WP_Theme_JSON::LATEST_SCHEMA, … … 800 800 * @ticket 52991 801 801 */ 802 function test_get_editor_settings_custom_units_can_be_disabled() {802 public function test_get_editor_settings_custom_units_can_be_disabled() { 803 803 add_theme_support( 'custom-units', array() ); 804 804 $input = get_default_block_editor_settings(); … … 817 817 * @ticket 52991 818 818 */ 819 function test_get_editor_settings_custom_units_can_be_enabled() {819 public function test_get_editor_settings_custom_units_can_be_enabled() { 820 820 add_theme_support( 'custom-units' ); 821 821 $input = get_default_block_editor_settings(); … … 834 834 * @ticket 52991 835 835 */ 836 function test_get_editor_settings_custom_units_can_be_filtered() {836 public function test_get_editor_settings_custom_units_can_be_filtered() { 837 837 add_theme_support( 'custom-units', 'rem', 'em' ); 838 838 $input = get_default_block_editor_settings();
Note: See TracChangeset
for help on using the changeset viewer.