Make WordPress Core

Changeset 34568


Ignore:
Timestamp:
09/26/2015 12:39:51 AM (11 years ago)
Author:
jorbin
Message:

Stop hitting SVN for http tests

The automated tests can fail due to svn. Change the tests to use a WordPress CDN image.

see #33968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r34123 r34568  
    1414        // You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
    1515        var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
     16        var $fileStreamUrl = 'https://s.w.org/screenshots/3.9/dashboard.png';
    1617
    1718        function setUp() {
    … …  
    181182
    182183        function test_file_stream() {
    183                 $url = 'http://unit-tests.svn.wordpress.org/trunk/data/images/2004-07-22-DSC_0007.jpg'; // we'll test against a file in the unit test data
    184                 $size = 87348;
     184                $url = $this->fileStreamUrl;
     185                $size = 153204;
    185186                $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename.
    186187
    … …  
    202203         */
    203204        function test_file_stream_limited_size() {
    204                 $url = 'http://unit-tests.svn.wordpress.org/trunk/data/images/2004-07-22-DSC_0007.jpg'; // we'll test against a file in the unit test data
     205                $url = $this->fileStreamUrl;
    205206                $size = 10000;
    206207                $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30, 'limit_response_size' => $size ) ); //Auto generate the filename.
    … …  
    223224         */
    224225        function test_request_limited_size() {
    225                 // we'll test against a file in the unit test data
    226                 $url = 'http://develop.svn.wordpress.org/trunk/tests/phpunit/data/images/2004-07-22-DSC_0007.jpg';
     226                $url = $this->fileStreamUrl;
    227227                $size = 10000;
    228228
Note: See TracChangeset for help on using the changeset viewer.