[wp-trac] [WordPress Trac] #57958: PHPUnit tests: Add/improve @covers annotations for WP 6.3
WordPress Trac
noreply at wordpress.org
Tue Mar 21 13:55:24 UTC 2023
#57958: PHPUnit tests: Add/improve @covers annotations for WP 6.3
------------------------------+-----------------------------
Reporter: pbearne | Owner: hellofromTonya
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.3
Component: Build/Test Tools | Version: 4.8
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+-----------------------------
Comment (by hellofromTonya):
In [changeset:"55572" 55572]:
{{{
#!CommitTicketReference repository="" revision="55572"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57958#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list