Make WordPress Core


Ignore:
Timestamp:
03/20/2018 10:34:11 PM (6 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/editorImagick.php

    r42431 r42863  
    466466        $editor = new WP_Image_Editor_Imagick( $file );
    467467
    468         $this->assertNotInstanceOf( 'WP_Error', $editor );
     468        $this->assertNotWPError( $editor );
    469469
    470470        $editor->load();
     
    493493        $editor = new WP_Image_Editor_Imagick( $file );
    494494
    495         $this->assertNotInstanceOf( 'WP_Error', $editor );
     495        $this->assertNotWPError( $editor );
    496496
    497497        $editor->load();
     
    525525        $image_editor = new WP_Image_Editor_Imagick( $save_to_file );
    526526        $image_editor->load();
    527         $this->assertNotInstanceOf( 'WP_Error', $image_editor );
     527        $this->assertNotWPError( $image_editor );
    528528        $image_editor->rotate( 180 );
    529529        $image_editor->save( $save_to_file );
Note: See TracChangeset for help on using the changeset viewer.