Changeset 54889 for trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
- Timestamp:
- 11/29/2022 12:32:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r54799 r54889 451 451 * @ticket 54336 452 452 */ 453 function test_add_theme_supports_are_loaded_for_themes_without_theme_json() {453 public function test_add_theme_supports_are_loaded_for_themes_without_theme_json() { 454 454 switch_theme( 'default' ); 455 455 $color_palette = array( … … 499 499 * @ticket 56611 500 500 */ 501 function test_merges_child_theme_json_into_parent_theme_json() {501 public function test_merges_child_theme_json_into_parent_theme_json() { 502 502 switch_theme( 'block-theme-child' ); 503 503 … … 620 620 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 621 621 */ 622 function test_get_user_data_from_wp_global_styles_does_not_use_uncached_queries() {622 public function test_get_user_data_from_wp_global_styles_does_not_use_uncached_queries() { 623 623 // Switch to a theme that does have support. 624 624 switch_theme( 'block-theme' ); … … 660 660 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 661 661 */ 662 function test_get_user_data_from_wp_global_styles_does_not_use_uncached_queries_for_logged_out_users() {662 public function test_get_user_data_from_wp_global_styles_does_not_use_uncached_queries_for_logged_out_users() { 663 663 // Switch to a theme that does have support. 664 664 switch_theme( 'block-theme' ); … … 681 681 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 682 682 */ 683 function test_get_user_data_from_wp_global_styles_does_not_run_for_theme_without_support() {683 public function test_get_user_data_from_wp_global_styles_does_not_run_for_theme_without_support() { 684 684 // The 'default' theme does not support theme.json. 685 685 switch_theme( 'default' ); … … 703 703 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 704 704 */ 705 function test_get_user_data_from_wp_global_styles_does_exist() {705 public function test_get_user_data_from_wp_global_styles_does_exist() { 706 706 // Switch to a theme that does have support. 707 707 switch_theme( 'block-theme' ); … … 720 720 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 721 721 */ 722 function test_get_user_data_from_wp_global_styles_create_post() {722 public function test_get_user_data_from_wp_global_styles_create_post() { 723 723 // Switch to a theme that does have support. 724 724 switch_theme( 'block-theme' ); … … 739 739 * @covers WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles 740 740 */ 741 function test_get_user_data_from_wp_global_styles_filter_state() {741 public function test_get_user_data_from_wp_global_styles_filter_state() { 742 742 // Switch to a theme that does have support. 743 743 switch_theme( 'block-theme' ); … … 755 755 * @covers WP_Theme_JSON_Resolver::get_theme_data 756 756 */ 757 function test_get_theme_data_theme_supports_overrides_theme_json() {757 public function test_get_theme_data_theme_supports_overrides_theme_json() { 758 758 // Test that get_theme_data() returns a WP_Theme_JSON object. 759 759 $theme_json_resolver = new WP_Theme_JSON_Resolver(); … … 778 778 * @covers WP_Theme_JSON_Resolver::get_theme_data 779 779 */ 780 function test_get_theme_data_does_not_parse_theme_json_if_not_present() {780 public function test_get_theme_data_does_not_parse_theme_json_if_not_present() { 781 781 // The 'default' theme does not support theme.json. 782 782 switch_theme( 'default' );
Note: See TracChangeset
for help on using the changeset viewer.