Changeset 50344 for trunk/tests/phpunit/tests/http/base.php
- Timestamp:
- 02/15/2021 02:00:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r49184 r50344 52 52 } 53 53 54 /** 55 * @covers ::wp_remote_request 56 */ 54 57 function test_redirect_on_301() { 55 58 // 5 : 5 & 301. … … 61 64 } 62 65 66 /** 67 * @covers ::wp_remote_request 68 */ 63 69 function test_redirect_on_302() { 64 70 // 5 : 5 & 302. … … 72 78 /** 73 79 * @ticket 16855 80 * 81 * @covers ::wp_remote_request 74 82 */ 75 83 function test_redirect_on_301_no_redirect() { … … 84 92 /** 85 93 * @ticket 16855 94 * 95 * @covers ::wp_remote_request 86 96 */ 87 97 function test_redirect_on_302_no_redirect() { … … 94 104 } 95 105 106 /** 107 * @covers ::wp_remote_request 108 */ 96 109 function test_redirections_equal() { 97 110 // 5 - 5. … … 103 116 } 104 117 118 /** 119 * @covers ::wp_remote_request 120 */ 105 121 function test_no_head_redirections() { 106 122 // No redirections on HEAD request. … … 114 130 /** 115 131 * @ticket 16855 132 * 133 * @covers ::wp_remote_request 116 134 */ 117 135 function test_redirect_on_head() { … … 130 148 } 131 149 150 /** 151 * @covers ::wp_remote_request 152 */ 132 153 function test_redirections_greater() { 133 154 // 10 > 5. … … 138 159 } 139 160 161 /** 162 * @covers ::wp_remote_request 163 */ 140 164 function test_redirections_greater_edgecase() { 141 165 // 6 > 5 (close edge case). … … 146 170 } 147 171 172 /** 173 * @covers ::wp_remote_request 174 */ 148 175 function test_redirections_less_edgecase() { 149 176 // 4 < 5 (close edge case). … … 156 183 /** 157 184 * @ticket 16855 185 * 186 * @covers ::wp_remote_request 158 187 */ 159 188 function test_redirections_zero_redirections_specified() { … … 170 199 * 171 200 * @ticket 16889 201 * 202 * @covers ::wp_remote_request 172 203 */ 173 204 function test_location_header_on_201() { … … 184 215 * 185 216 * @ticket 16889 217 * 218 * @covers ::wp_remote_request 219 * @covers ::wp_remote_retrieve_body 186 220 */ 187 221 function test_no_redirection_on_PUT() { … … 204 238 /** 205 239 * @ticket 11888 240 * 241 * @covers ::wp_remote_request 206 242 */ 207 243 function test_send_headers() { … … 234 270 } 235 271 272 /** 273 * @covers ::wp_remote_request 274 */ 236 275 function test_file_stream() { 237 276 $url = $this->file_stream_url; … … 261 300 /** 262 301 * @ticket 26726 302 * 303 * @covers ::wp_remote_request 263 304 */ 264 305 function test_file_stream_limited_size() { … … 290 331 * 291 332 * @ticket 31172 333 * 334 * @covers ::wp_remote_request 292 335 */ 293 336 function test_request_limited_size() { … … 314 357 * 315 358 * @ticket 17588 359 * 360 * @covers ::wp_remote_post 361 * @covers ::wp_remote_retrieve_body 316 362 */ 317 363 function test_post_redirect_to_method_300( $response_code, $method ) { … … 353 399 * 354 400 * @ticket 24182 401 * 402 * @covers ::wp_remote_get 403 * @covers ::wp_remote_retrieve_body 355 404 */ 356 405 function test_ip_url_with_host_header() { … … 376 425 * 377 426 * @ticket 33978 427 * 428 * @covers ::wp_remote_head 378 429 */ 379 430 function test_https_url_without_ssl_verification() { … … 398 449 * 399 450 * @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 400 456 */ 401 457 function test_multiple_location_headers() { … … 418 474 * 419 475 * @ticket 21182 476 * 477 * @covers ::wp_remote_get 478 * @covers ::wp_remote_retrieve_body 420 479 */ 421 480 function test_cookie_handling() { … … 433 492 * @group ssl 434 493 * @ticket 25007 494 * 495 * @covers ::wp_remote_get 435 496 */ 436 497 function test_ssl() { … … 447 508 /** 448 509 * @ticket 37733 510 * 511 * @covers ::wp_remote_request 449 512 */ 450 513 function test_url_with_double_slashes_path() {
Note: See TracChangeset
for help on using the changeset viewer.