Make WordPress Core


Ignore:
Timestamp:
07/08/2022 12:11:15 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Remove @uses tags from the test suite.

  • These were not used consistently, with only four instances across all the tests.
  • Using this tag in combination with the beStrictAboutCoversAnnotation="true" setting will mark a test as "Risky" if code is executed during the test which is not annotated via @covers or @uses tags. That would make the maintainance of the tags very fiddly, while adding little additional value for the test code base.

Follow-up to [32995], [39914], [42636], [53682].

Props jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/url/getPrivacyPolicyUrl.php

    r53682 r53687  
    5858    /**
    5959     * The function should return the privacy policy URL when `wp_page_for_privacy_policy` is set.
    60      *
    61      * @uses ::get_permalink
    6260     */
    6361    public function test_get_privacy_policy_url_should_return_valid_url_when_policy_page_set() {
Note: See TracChangeset for help on using the changeset viewer.