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/base.php

    r49184 r50344  
    5252    }
    5353
     54    /**
     55     * @covers ::wp_remote_request
     56     */
    5457    function test_redirect_on_301() {
    5558        // 5 : 5 & 301.
     
    6164    }
    6265
     66    /**
     67     * @covers ::wp_remote_request
     68     */
    6369    function test_redirect_on_302() {
    6470        // 5 : 5 & 302.
     
    7278    /**
    7379     * @ticket 16855
     80     *
     81     * @covers ::wp_remote_request
    7482     */
    7583    function test_redirect_on_301_no_redirect() {
     
    8492    /**
    8593     * @ticket 16855
     94     *
     95     * @covers ::wp_remote_request
    8696     */
    8797    function test_redirect_on_302_no_redirect() {
     
    94104    }
    95105
     106    /**
     107     * @covers ::wp_remote_request
     108     */
    96109    function test_redirections_equal() {
    97110        // 5 - 5.
     
    103116    }
    104117
     118    /**
     119     * @covers ::wp_remote_request
     120     */
    105121    function test_no_head_redirections() {
    106122        // No redirections on HEAD request.
     
    114130    /**
    115131     * @ticket 16855
     132     *
     133     * @covers ::wp_remote_request
    116134     */
    117135    function test_redirect_on_head() {
     
    130148    }
    131149
     150    /**
     151     * @covers ::wp_remote_request
     152     */
    132153    function test_redirections_greater() {
    133154        // 10 > 5.
     
    138159    }
    139160
     161    /**
     162     * @covers ::wp_remote_request
     163     */
    140164    function test_redirections_greater_edgecase() {
    141165        // 6 > 5 (close edge case).
     
    146170    }
    147171
     172    /**
     173     * @covers ::wp_remote_request
     174     */
    148175    function test_redirections_less_edgecase() {
    149176        // 4 < 5 (close edge case).
     
    156183    /**
    157184     * @ticket 16855
     185     *
     186     * @covers ::wp_remote_request
    158187     */
    159188    function test_redirections_zero_redirections_specified() {
     
    170199     *
    171200     * @ticket 16889
     201     *
     202     * @covers ::wp_remote_request
    172203     */
    173204    function test_location_header_on_201() {
     
    184215     *
    185216     * @ticket 16889
     217     *
     218     * @covers ::wp_remote_request
     219     * @covers ::wp_remote_retrieve_body
    186220     */
    187221    function test_no_redirection_on_PUT() {
     
    204238    /**
    205239     * @ticket 11888
     240     *
     241     * @covers ::wp_remote_request
    206242     */
    207243    function test_send_headers() {
     
    234270    }
    235271
     272    /**
     273     * @covers ::wp_remote_request
     274     */
    236275    function test_file_stream() {
    237276        $url  = $this->file_stream_url;
     
    261300    /**
    262301     * @ticket 26726
     302     *
     303     * @covers ::wp_remote_request
    263304     */
    264305    function test_file_stream_limited_size() {
     
    290331     *
    291332     * @ticket 31172
     333     *
     334     * @covers ::wp_remote_request
    292335     */
    293336    function test_request_limited_size() {
     
    314357     *
    315358     * @ticket 17588
     359     *
     360     * @covers ::wp_remote_post
     361     * @covers ::wp_remote_retrieve_body
    316362     */
    317363    function test_post_redirect_to_method_300( $response_code, $method ) {
     
    353399     *
    354400     * @ticket 24182
     401     *
     402     * @covers ::wp_remote_get
     403     * @covers ::wp_remote_retrieve_body
    355404     */
    356405    function test_ip_url_with_host_header() {
     
    376425     *
    377426     * @ticket 33978
     427     *
     428     * @covers ::wp_remote_head
    378429     */
    379430    function test_https_url_without_ssl_verification() {
     
    398449     *
    399450     * @ticket 16890
     451     *
     452     * @covers ::wp_remote_head
     453     * @covers ::wp_remote_retrieve_header
     454     * @covers ::wp_remote_get
     455     * @covers ::wp_remote_retrieve_body
    400456     */
    401457    function test_multiple_location_headers() {
     
    418474     *
    419475     * @ticket 21182
     476     *
     477     * @covers ::wp_remote_get
     478     * @covers ::wp_remote_retrieve_body
    420479     */
    421480    function test_cookie_handling() {
     
    433492     * @group ssl
    434493     * @ticket 25007
     494     *
     495     * @covers ::wp_remote_get
    435496     */
    436497    function test_ssl() {
     
    447508    /**
    448509     * @ticket 37733
     510     *
     511     * @covers ::wp_remote_request
    449512     */
    450513    function test_url_with_double_slashes_path() {
Note: See TracChangeset for help on using the changeset viewer.