Opened 3 years ago
Closed 2 years ago
#57841 closed task (blessed) (fixed)
Test tool and unit test improvements for 6.3
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 6.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
Previously:
This ticket is for various fixes and improvements in PHPUnit tests that don't have a more specific ticket, as well as general improvements to the GitHub Actions workflows that run automated testing.
Change History (29)
This ticket was mentioned in PR #3745 on WordPress/wordpress-develop by @costdev.
3 years ago
#1
- Keywords has-patch has-unit-tests added
This ticket was mentioned in PR #4244 on WordPress/wordpress-develop by @hellofromTonya.
3 years ago
#2
Adds a test class for wp_script_is() and moves existing tests into this class.
There is a test in WP_Dependencies_jQuery that covers wp_script_is(). The coverage is incomplete. This PR relocates that test to the new Tests_Dependencies_WpScriptIs test class.
Includes @covers for wp_script_is() which is a wrapper around WP_Scripts::query.
Trac ticket: https://core.trac.wordpress.org/ticket/57841
@hellofromTonya commented on PR #4244:
3 years ago
#6
Thank you @anton-vlasenko! Committed via https://core.trac.wordpress.org/changeset/55565.
This ticket was mentioned in PR #4252 on WordPress/wordpress-develop by @hellofromTonya.
3 years ago
#7
Tests: Add test class for wp_enqueue_stored_styles().
[54214] added tests and global reset for wp_enqueue_stored_styles() into the Tests_Theme_wpGetGlobalStylesheet. This changeset adds a new test case for the function and relocates its tests to it.
Follow-up to [54214].
Props costdev.
See #57841.
Trac ticket: https://core.trac.wordpress.org/ticket/57841
@hellofromTonya commented on PR #4252:
3 years ago
#9
Committed via https://core.trac.wordpress.org/changeset/55567.
@hellofromTonya commented on PR #3745:
3 years ago
#11
Committed via https://core.trac.wordpress.org/changeset/55572.
This ticket was mentioned in PR #4438 on WordPress/wordpress-develop by @spacedmonkey.
3 years ago
#18
Trac ticket: https://core.trac.wordpress.org/ticket/57841
This ticket was mentioned in Slack in #core-committers by spacedmonkey. View the logs.
3 years ago
@spacedmonkey commented on PR #4438:
3 years ago
#23
Committed.
This ticket was mentioned in PR #4798 on WordPress/wordpress-develop by @ironprogrammer.
2 years ago
#27
Adds a unit test to validate printing of @font-face declarations in a classic theme with a custom font defined in theme.json. Also updates test_font_face_generated_from_themejson() to use a data provider to include the new theme (webfonts-theme-classic).
Previously, only a block theme (webfonts-theme) was subject to this test.
Trac ticket: https://core.trac.wordpress.org/ticket/57841
This PR:
WP_Theme_UnitTestCase.@coversannotation.test_should_enqueue_stored_styles()to its own file.Trac ticket:
https://core.trac.wordpress.org/ticket/57841
https://core.trac.wordpress.org/ticket/56793