Changeset 52010 for trunk/tests/phpunit/tests/http/functions.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/functions.php
r51415 r52010 10 10 * @covers ::wp_remote_head 11 11 */ 12 function test_head_request() {12 public function test_head_request() { 13 13 // This URL gives a direct 200 response. 14 14 $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg'; … … 29 29 * @covers ::wp_remote_head 30 30 */ 31 function test_head_redirect() {31 public function test_head_redirect() { 32 32 // This URL will 301 redirect. 33 33 $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg'; … … 41 41 * @covers ::wp_remote_head 42 42 */ 43 function test_head_404() {43 public function test_head_404() { 44 44 $url = 'https://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg'; 45 45 $response = wp_remote_head( $url ); … … 54 54 * @covers ::wp_remote_retrieve_response_code 55 55 */ 56 function test_get_request() {56 public function test_get_request() { 57 57 $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg'; 58 58 … … 76 76 * @covers ::wp_remote_retrieve_response_code 77 77 */ 78 function test_get_redirect() {78 public function test_get_redirect() { 79 79 // This will redirect to asdftestblog1.files.wordpress.com. 80 80 $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg'; … … 95 95 * @covers ::wp_remote_get 96 96 */ 97 function test_get_redirect_limit_exceeded() {97 public function test_get_redirect_limit_exceeded() { 98 98 // This will redirect to asdftestblog1.files.wordpress.com. 99 99 $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg'; … … 114 114 * @covers ::wp_remote_retrieve_cookie_value 115 115 */ 116 function test_get_response_cookies() {116 public function test_get_response_cookies() { 117 117 $url = 'https://login.wordpress.org/wp-login.php'; 118 118 … … 147 147 * @covers ::wp_remote_retrieve_cookie 148 148 */ 149 function test_get_response_cookies_with_wp_http_cookie_object() {149 public function test_get_response_cookies_with_wp_http_cookie_object() { 150 150 $url = 'http://example.org'; 151 151 … … 183 183 * @covers ::wp_remote_retrieve_cookie 184 184 */ 185 function test_get_response_cookies_with_name_value_array() {185 public function test_get_response_cookies_with_name_value_array() { 186 186 $url = 'http://example.org'; 187 187 … … 215 215 * @covers WP_Http 216 216 */ 217 function test_get_cookie_host_only() {217 public function test_get_cookie_host_only() { 218 218 // Emulate WP_Http::request() internals. 219 219 $requests_response = new Requests_Response();
Note: See TracChangeset
for help on using the changeset viewer.