Changeset 34568
- Timestamp:
- 09/26/2015 12:39:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r34123 r34568 14 14 // You can use your own version of data/WPHTTP-testcase-redirection-script.php here. 15 15 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'; 16 17 17 18 function setUp() { … … 181 182 182 183 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 data184 $size = 87348;184 $url = $this->fileStreamUrl; 185 $size = 153204; 185 186 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename. 186 187 … … 202 203 */ 203 204 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 data205 $url = $this->fileStreamUrl; 205 206 $size = 10000; 206 207 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30, 'limit_response_size' => $size ) ); //Auto generate the filename. … … 223 224 */ 224 225 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; 227 227 $size = 10000; 228 228
Note: See TracChangeset
for help on using the changeset viewer.