Changeset 64104
- Timestamp:
- 10/05/2026 06:34:52 PM (5 weeks ago)
- Location:
- trunk/tests/phpunit/tests/theme
- Files:
-
- 9 edited
-
customHeader.php (modified) (1 diff)
-
wpAddGlobalStylesForBlocks.php (modified) (1 diff)
-
wpGetGlobalStylesheet.php (modified) (2 diffs)
-
wpTheme.php (modified) (2 diffs)
-
wpThemeGetBlockPatterns.php (modified) (1 diff)
-
wpThemeHasThemeJson.php (modified) (1 diff)
-
wpThemeJson.php (modified) (13 diffs)
-
wpThemeJsonResolver.php (modified) (5 diffs)
-
wpThemeJsonSelectorList.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/customHeader.php
r60729 r64104 112 112 * @return array 113 113 */ 114 public function data_filter_header_image() {114 public static function data_filter_header_image() { 115 115 return array( 116 116 'an image url' => array( -
trunk/tests/phpunit/tests/theme/wpAddGlobalStylesForBlocks.php
r63627 r64104 385 385 * @return array[] 386 386 */ 387 public function data_wp_get_block_name_from_theme_json_path() {387 public static function data_wp_get_block_name_from_theme_json_path() { 388 388 return array( 389 389 'core block styles' => array( -
trunk/tests/phpunit/tests/theme/wpGetGlobalStylesheet.php
r57259 r64104 88 88 * @return array[] 89 89 */ 90 public function data_should_conditionally_include_font_sizes() {90 public static function data_should_conditionally_include_font_sizes() { 91 91 return array( 92 92 'block theme using defaults' => array( … … 186 186 * @return array[] 187 187 */ 188 public function data_should_not_conditionally_include_font_sizes() {188 public static function data_should_not_conditionally_include_font_sizes() { 189 189 return array( 190 190 'block theme using presets' => array( -
trunk/tests/phpunit/tests/theme/wpTheme.php
r63507 r64104 526 526 * @return array 527 527 */ 528 public function data_is_block_theme() {528 public static function data_is_block_theme() { 529 529 return array( 530 530 'default - non-block theme' => array( … … 568 568 * @return array 569 569 */ 570 public function data_get_file_path() {570 public static function data_get_file_path() { 571 571 return array( 572 572 'no theme: no file given' => array( -
trunk/tests/phpunit/tests/theme/wpThemeGetBlockPatterns.php
r63595 r64104 183 183 * @return array[] 184 184 */ 185 public function data_get_block_patterns() {185 public static function data_get_block_patterns() { 186 186 return array( 187 187 array( -
trunk/tests/phpunit/tests/theme/wpThemeHasThemeJson.php
r55086 r64104 30 30 * @return array[] 31 31 */ 32 public function data_theme_has_theme_json_reports_correctly() {32 public static function data_theme_has_theme_json_reports_correctly() { 33 33 return array( 34 34 'a theme with theme.json' => array( -
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r63934 r64104 5142 5142 * @return array 5143 5143 */ 5144 public function data_get_property_value_should_return_string_for_invalid_paths_or_null_values() {5144 public static function data_get_property_value_should_return_string_for_invalid_paths_or_null_values() { 5145 5145 return array( 5146 5146 'empty string' => array( … … 5595 5595 * @return array 5596 5596 */ 5597 public function data_sanitize_for_block_with_style_variations() {5597 public static function data_sanitize_for_block_with_style_variations() { 5598 5598 return array( 5599 5599 '1 variation with 1 valid property' => array( … … 5815 5815 * @return array 5816 5816 */ 5817 public function data_sanitize_with_invalid_style_variation() {5817 public static function data_sanitize_with_invalid_style_variation() { 5818 5818 return array( 5819 5819 'empty string variation' => array( … … 5867 5867 * @return array 5868 5868 */ 5869 public function data_get_styles_for_block_with_style_variations() {5869 public static function data_get_styles_for_block_with_style_variations() { 5870 5870 $plain = array( 5871 5871 'metadata' => array( … … 6339 6339 * @return array 6340 6340 */ 6341 public function data_set_spacing_sizes() {6341 public static function data_set_spacing_sizes() { 6342 6342 return array( 6343 6343 'only one value when single step in spacing scale' => array( … … 6630 6630 * @return array 6631 6631 */ 6632 public function data_set_spacing_sizes_when_invalid() {6632 public static function data_set_spacing_sizes_when_invalid() { 6633 6633 return array( 6634 6634 'missing operator value' => array( … … 6723 6723 * @return array 6724 6724 */ 6725 public function data_update_separator_declarations() {6725 public static function data_update_separator_declarations() { 6726 6726 return array( 6727 6727 // If only background is defined, test that includes border-color to the style so it is applied on the front end. … … 6823 6823 * @return array 6824 6824 */ 6825 public function data_update_button_width_declarations() {6825 public static function data_update_button_width_declarations() { 6826 6826 return array( 6827 6827 'direct percentage value' => array( … … 7306 7306 * @return array[] 7307 7307 */ 7308 public function data_custom_css_for_user_caps() {7308 public static function data_custom_css_for_user_caps() { 7309 7309 return array( 7310 7310 'allows custom css for users with caps' => array( … … 7371 7371 * @return array[] 7372 7372 */ 7373 public function data_process_blocks_custom_css() {7373 public static function data_process_blocks_custom_css() { 7374 7374 return array( 7375 7375 // Simple CSS without any nested selectors. … … 7710 7710 * @return array[] 7711 7711 */ 7712 public function data_get_block_style_variation_selector() {7712 public static function data_get_block_style_variation_selector() { 7713 7713 return array( 7714 7714 'empty block selector' => array( … … 8999 8999 * @return array<string, {selector: string, to_append: string, expeted: string}> 9000 9000 */ 9001 public function data_append_to_selector() {9001 public static function data_append_to_selector() { 9002 9002 return array( 9003 9003 'single class selector' => array( … … 9139 9139 * @return array<string, {selector: string, to_prepend: string, expeted: string}> 9140 9140 */ 9141 public function data_prepend_to_selector() {9141 public static function data_prepend_to_selector() { 9142 9142 return array( 9143 9143 'single class selector' => array( -
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r63948 r64104 325 325 * @return array 326 326 */ 327 public function data_has_same_registered_blocks_when_all_blocks_not_cached() {327 public static function data_has_same_registered_blocks_when_all_blocks_not_cached() { 328 328 return array( 329 329 'origin: core; cache: empty' => array( … … 400 400 * @return array 401 401 */ 402 public function data_has_same_registered_blocks_when_all_blocks_are_cached() {402 public static function data_has_same_registered_blocks_when_all_blocks_are_cached() { 403 403 return array( 404 404 'core' => array( 'core' ), … … 445 445 * @return array 446 446 */ 447 public function data_get_core_data() {447 public static function data_get_core_data() { 448 448 return array( 449 449 'When both caches are empty' => array( … … 978 978 * @return array[] 979 979 */ 980 public function data_get_merged_data_returns_origin() {980 public static function data_get_merged_data_returns_origin() { 981 981 return array( 982 982 'origin_default' => array( … … 1062 1062 * @return array 1063 1063 */ 1064 public function data_get_style_variations() {1064 public static function data_get_style_variations() { 1065 1065 return array( 1066 1066 // @ticket 57545 -
trunk/tests/phpunit/tests/theme/wpThemeJsonSelectorList.php
r63527 r64104 46 46 * @return array<string, array{selector: string, expected: string[]}> 47 47 */ 48 public function data_split_selector_list() {48 public static function data_split_selector_list() { 49 49 return array( 50 50 'single selector' => array( … … 115 115 * @return array<string, array{selector: string, expected: string}> 116 116 */ 117 public function data_prepend_to_selector_uses_safe_splitting() {117 public static function data_prepend_to_selector_uses_safe_splitting() { 118 118 return array( 119 119 'fast path for simple selector list' => array(
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)