Make WordPress Core


Ignore:
Timestamp:
02/21/2020 01:05:39 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Fix the Travis CI build for the 3.8 branch.

Among other fixes, this backports [26871], [26909-26910], [26940], [27086], [27168], [28799], [28873], [28943], [28961], [28964], [28966-28967], [29120], [29251], [29503], [29860], [29869], [29954], [30001], [30160], [30282], [30285], [30289-30291], [30513-30514], [30516-30521], [30524], [30526], [30529-30530], [31253-31254], [31257-31259], [31622], [40241], [40255], [40257], [40259], [40269], [40271], [40446], [40449], [40457], [40604], [40538], [40833], [41082], [41303], [41306], [44993].

See #49485.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/tests/phpunit/tests/http/functions.php

    r25002 r47338  
    66 */
    77class Tests_HTTP_Functions extends WP_UnitTestCase {
     8        public function setUp() {
     9                if ( ! extension_loaded( 'openssl' ) ) {
     10                        $this->markTestSkipped( 'Tests_HTTP_Functions requires openssl.' );
     11                }
     12
     13                parent::setUp();
     14        }
     15
    816        function test_head_request() {
    917                // this url give a direct 200 response
    10                 $url = 'http://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     18                $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
    1119                $response = wp_remote_head( $url );
    1220                $headers = wp_remote_retrieve_headers( $response );
     
    2028        function test_head_redirect() {
    2129                // this url will 301 redirect
    22                 $url = 'http://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
     30                $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
    2331                $response = wp_remote_head( $url );
    2432                $this->assertEquals( '301', wp_remote_retrieve_response_code( $response ) );
     
    2634
    2735        function test_head_404() {
    28                 $url = 'http://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg';
     36                $url = 'https://asdftestblog1.files.wordpress.com/2007/09/awefasdfawef.jpg';
    2937                $headers = wp_remote_head( $url );
    3038
     
    3442
    3543        function test_get_request() {
    36                 $url = 'http://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
     44                $url = 'https://asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';
    3745                $file = tempnam('/tmp', 'testfile');
    3846
     
    5260        function test_get_redirect() {
    5361                // this will redirect to asdftestblog1.files.wordpress.com
    54                 $url = 'http://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
     62                $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
    5563                $file = tempnam('/tmp', 'testfile');
    5664
     
    7078        function test_get_redirect_limit_exceeded() {
    7179                // this will redirect to asdftestblog1.files.wordpress.com
    72                 $url = 'http://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
     80                $url = 'https://asdftestblog1.wordpress.com/files/2007/09/2007-06-30-dsc_4700-1.jpg';
    7381                $file = tempnam('/tmp', 'testfile');
    7482                // pretend we've already redirected 5 times
Note: See TracChangeset for help on using the changeset viewer.