Changeset 50344 for trunk/tests/phpunit/tests/http/functions.php
- Timestamp:
- 02/15/2021 02:00:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/functions.php
r49025 r50344 8 8 class Tests_HTTP_Functions extends WP_UnitTestCase { 9 9 10 /** 11 * @covers ::wp_remote_head 12 */ 10 13 function test_head_request() { 11 14 // This URL gives a direct 200 response. … … 24 27 } 25 28 29 /** 30 * @covers ::wp_remote_head 31 */ 26 32 function test_head_redirect() { 27 33 // This URL will 301 redirect. … … 33 39 } 34 40 41 /** 42 * @covers ::wp_remote_head 43 */ 35 44 function test_head_404() { 36 45 $url = 'https://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg'; … … 41 50 } 42 51 52 /** 53 * @covers ::wp_remote_get 54 * @covers ::wp_remote_retrieve_headers 55 * @covers ::wp_remote_retrieve_response_code 56 */ 43 57 function test_get_request() { 44 58 $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg'; … … 58 72 } 59 73 74 /** 75 * @covers ::wp_remote_get 76 * @covers ::wp_remote_retrieve_headers 77 * @covers ::wp_remote_retrieve_response_code 78 */ 60 79 function test_get_redirect() { 61 80 // This will redirect to asdftestblog1.files.wordpress.com. … … 74 93 } 75 94 95 /** 96 * @covers ::wp_remote_get 97 */ 76 98 function test_get_redirect_limit_exceeded() { 77 99 // This will redirect to asdftestblog1.files.wordpress.com. … … 87 109 /** 88 110 * @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 89 116 */ 90 117 function test_get_response_cookies() { … … 116 143 /** 117 144 * @ticket 37437 145 * 146 * @covers ::wp_remote_get 147 * @covers ::wp_remote_retrieve_cookies 148 * @covers ::wp_remote_retrieve_cookie 118 149 */ 119 150 function test_get_response_cookies_with_wp_http_cookie_object() { … … 148 179 /** 149 180 * @ticket 37437 181 * 182 * @covers ::wp_remote_get 183 * @covers ::wp_remote_retrieve_cookies 184 * @covers ::wp_remote_retrieve_cookie 150 185 */ 151 186 function test_get_response_cookies_with_name_value_array() { … … 175 210 /** 176 211 * @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 177 217 */ 178 218 function test_get_cookie_host_only() {
Note: See TracChangeset
for help on using the changeset viewer.