wordpress-develop/tests/phpunit/tests/theme
Tonya Mork 95826a28f1 Tests: Rename test class and improve tests for wp_get_global_stylesheet().
Changes include:
* Renames the test class to be compliant with test coding standards.
* Converts the test class to extend `WP_Theme_UnitTestCase` to reuse test fixtures.
* Implements data providers to encapsulate datasets and reduce code repetition.
* Adds a `@covers` annotation.
* Improves assertion messages to help with diagnosing failed tests.

Follow-up to [55567], [55148], [52682], [53916], [52675-52677].

Props costdev, hellofromTonya.
See #57841, #57958.

git-svn-id: https://develop.svn.wordpress.org/trunk@55572 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-21 13:52:29 +00:00
..
base.php Editor: Ensure global styles are rendered for third-party blocks. 2022-10-27 15:39:20 +00:00
customHeader.php Code Modernization: Explicitly declare all properties created in set_up() methods of various test classes. 2022-08-27 12:30:08 +00:00
getThemeStarterContent.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
support.php Themes: Correct the logic for displaying a _doing_it_wrong() notice for add_theme_support( 'html5' ). 2022-03-07 14:42:49 +00:00
themeDir.php REST API: Support non-Latin characters in template route regex. 2023-02-07 23:45:18 +00:00
wpAddGlobalStylesForBlocks.php Editor: Ensure global styles are rendered for third-party blocks. 2022-10-27 15:39:20 +00:00
wpEnqueueStoredStyles.php Tests: Add test class for wp_enqueue_stored_styles(). 2023-03-20 18:20:05 +00:00
wpGetGlobalStylesheet.php Tests: Rename test class and improve tests for wp_get_global_stylesheet(). 2023-03-21 13:52:29 +00:00
wpGetGlobalStylesSvgFilters.php Editor: Use a non-persistent object cache instead of transient in wp_get_global_stylesheet(). 2023-02-01 22:57:04 +00:00
wpTheme.php Themes: Account for a numeric theme directory in WP_Theme::__construct(). 2023-02-27 15:32:22 +00:00
wpThemeGetAllowedFilters.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
wpThemeHasThemeJson.php Themes: Introduce wp_theme_has_theme_json() for public consumption. 2023-01-18 11:38:16 +00:00
wpThemeJson.php Tests: Use assertSame() in Tests_Theme_wpThemeJson. 2023-03-06 17:44:15 +00:00
wpThemeJsonResolver.php Editor: Ensure Global styles values are reset in the site editor. 2023-03-01 16:15:27 +00:00
wpThemeJsonSchema.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2022-11-29 12:32:37 +00:00