Make WordPress Core


Ignore:
Timestamp:
10/25/2020 12:31:12 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct newly introduced @covers tags.

When global functions are covered, they need to be prefixed with :: (double colon) to distinguish them from class name.

See https://phpunit.readthedocs.io/en/7.0/annotations.html#covers for more details.

Follow-up to [49000], [49171].

Props jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/wpPublishPosts.php

    r49000 r49305  
    4545     * Ensure wp_publish_post adds default category.
    4646     *
    47      * @covers wp_publish_post
     47     * @covers ::wp_publish_post
    4848     * @ticket 51292
    4949     */
     
    6565     * Ensure wp_publish_post adds default category when tagged.
    6666     *
    67      * @covers wp_publish_post
     67     * @covers ::wp_publish_post
    6868     * @ticket 51292
    6969     */
     
    8686     * Ensure wp_publish_post does not add default term in error.
    8787     *
    88      * @covers wp_publish_post
     88     * @covers ::wp_publish_post
    8989     * @ticket 51292
    9090     */
     
    121121     * Ensure wp_publish_post adds default term.
    122122     *
    123      * @covers wp_publish_post
     123     * @covers ::wp_publish_post
    124124     * @ticket 51292
    125125     */
Note: See TracChangeset for help on using the changeset viewer.