Make WordPress Core


Ignore:
Timestamp:
03/20/2018 10:34:11 PM (7 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite.

Props birgire

Fixes #42065

File:
1 edited

Legend:

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

    r42343 r42863  
    477477        $editor = wp_get_image_editor( $file );
    478478
    479         $this->assertNotInstanceOf( 'WP_Error', $editor );
     479        $this->assertNotWPError( $editor );
    480480
    481481        $editor->load();
     
    504504        $editor = wp_get_image_editor( $file );
    505505
    506         $this->assertNotInstanceOf( 'WP_Error', $editor );
     506        $this->assertNotWPError( $editor );
    507507
    508508        $editor->load();
     
    532532
    533533        $editor = new WP_Image_Editor_GD( $file );
    534                 $this->assertNotInstanceOf( 'WP_Error', $editor );
     534                $this->assertNotWPError( $editor );
    535535                $editor->load();
    536536                $editor->rotate( 180 );
Note: See TracChangeset for help on using the changeset viewer.