Make WordPress Core

Changeset 31259


Ignore:
Timestamp:
01/21/2015 06:57:17 PM (10 years ago)
Author:
boonebgorges
Message:

A few more wordpress.com https assets in unit tests.

See #31091.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r29834 r31259  
    293293            $this->markTestSkipped( 'jpeg support unavailable' );
    294294
    295         $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
     295        if ( ! extension_loaded( 'openssl' ) ) {
     296            $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' );
     297        }
     298
     299        $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
    296300                              0, 0, 100, 100, 100, 100, false,
    297301                              DIR_TESTDATA . '/images/' . rand_str() . '.jpg' );
     
    313317
    314318    public function test_wp_crop_image_url_not_exist() {
    315         $file = wp_crop_image( 'http://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
     319        if ( ! extension_loaded( 'openssl' ) ) {
     320            $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' );
     321        }
     322
     323        $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
    316324                              0, 0, 100, 100, 100, 100 );
    317325        $this->assertInstanceOf( 'WP_Error', $file );
Note: See TracChangeset for help on using the changeset viewer.