Make WordPress Core


Ignore:
Timestamp:
02/15/2021 02:00:02 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add missing @covers tags for files in phpunit/tests/http/.

Props patopaiar, jrf.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/functions.php

    r49025 r50344  
    88class Tests_HTTP_Functions extends WP_UnitTestCase {
    99
     10    /**
     11     * @covers ::wp_remote_head
     12     */
    1013    function test_head_request() {
    1114        // This URL gives a direct 200 response.
     
    2427    }
    2528
     29    /**
     30     * @covers ::wp_remote_head
     31     */
    2632    function test_head_redirect() {
    2733        // This URL will 301 redirect.
     
    3339    }
    3440
     41    /**
     42     * @covers ::wp_remote_head
     43     */
    3544    function test_head_404() {
    3645        $url      = 'https://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg';
     
    4150    }
    4251
     52    /**
     53     * @covers ::wp_remote_get
     54     * @covers ::wp_remote_retrieve_headers
     55     * @covers ::wp_remote_retrieve_response_code
     56     */
    4357    function test_get_request() {
    4458        $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     
    5872    }
    5973
     74    /**
     75     * @covers ::wp_remote_get
     76     * @covers ::wp_remote_retrieve_headers
     77     * @covers ::wp_remote_retrieve_response_code
     78     */
    6079    function test_get_redirect() {
    6180        // This will redirect to asdftestblog1.files.wordpress.com.
     
    7493    }
    7594
     95    /**
     96     * @covers ::wp_remote_get
     97     */
    7698    function test_get_redirect_limit_exceeded() {
    7799        // This will redirect to asdftestblog1.files.wordpress.com.
     
    87109    /**
    88110     * @ticket 33711
     111     *
     112     * @covers ::wp_remote_head
     113     * @covers ::wp_remote_retrieve_cookies
     114     * @covers ::wp_remote_retrieve_cookie
     115     * @covers ::wp_remote_retrieve_cookie_value
    89116     */
    90117    function test_get_response_cookies() {
     
    116143    /**
    117144     * @ticket 37437
     145     *
     146     * @covers ::wp_remote_get
     147     * @covers ::wp_remote_retrieve_cookies
     148     * @covers ::wp_remote_retrieve_cookie
    118149     */
    119150    function test_get_response_cookies_with_wp_http_cookie_object() {
     
    148179    /**
    149180     * @ticket 37437
     181     *
     182     * @covers ::wp_remote_get
     183     * @covers ::wp_remote_retrieve_cookies
     184     * @covers ::wp_remote_retrieve_cookie
    150185     */
    151186    function test_get_response_cookies_with_name_value_array() {
     
    175210    /**
    176211     * @ticket 43231
     212     *
     213     * @covers WP_HTTP_Requests_Response::__construct
     214     * @covers ::wp_remote_retrieve_cookies
     215     * @covers ::wp_remote_retrieve_cookie
     216     * @covers WP_Http
    177217     */
    178218    function test_get_cookie_host_only() {
Note: See TracChangeset for help on using the changeset viewer.