Make WordPress Core


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

Move GD-specific resize test to GD-specific resize test file.

This makes it so that we don't have to mark the test as skipped when running
through Imagick tests.

See #30284.

File:
1 edited

Legend:

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

    r30660 r31257  
    149149
    150150    /**
    151      * Try resizing a php file (bad image)
    152      * @ticket 6821
    153      */
    154     public function test_resize_bad_image() {
    155 
    156         if ( $this->editor_engine == 'WP_Image_Editor_Imagick' ) {
    157             $this->markTestSkipped( sprintf( 'Avoid GLib-GObject-CRITICAL assertion in %s', $this->editor_engine ) );
    158             return;
    159         }
    160 
    161         $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );
    162         $this->assertInstanceOf( 'WP_Error', $image );
    163         $this->assertEquals( 'invalid_image', $image->get_error_code() );
    164     }
    165 
    166 
    167     /**
    168151     * Function to help out the tests
    169152     */
Note: See TracChangeset for help on using the changeset viewer.