mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite.
Props birgire Fixes #42065 git-svn-id: https://develop.svn.wordpress.org/trunk@42863 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -476,7 +476,7 @@ class Tests_Image_Editor_GD extends WP_Image_UnitTestCase {
|
||||
|
||||
$editor = wp_get_image_editor( $file );
|
||||
|
||||
$this->assertNotInstanceOf( 'WP_Error', $editor );
|
||||
$this->assertNotWPError( $editor );
|
||||
|
||||
$editor->load();
|
||||
$editor->resize( 5, 5 );
|
||||
@@ -503,7 +503,7 @@ class Tests_Image_Editor_GD extends WP_Image_UnitTestCase {
|
||||
|
||||
$editor = wp_get_image_editor( $file );
|
||||
|
||||
$this->assertNotInstanceOf( 'WP_Error', $editor );
|
||||
$this->assertNotWPError( $editor );
|
||||
|
||||
$editor->load();
|
||||
|
||||
@@ -531,7 +531,7 @@ class Tests_Image_Editor_GD extends WP_Image_UnitTestCase {
|
||||
$expected = imagecolorsforindex( $image, $rgb );
|
||||
|
||||
$editor = new WP_Image_Editor_GD( $file );
|
||||
$this->assertNotInstanceOf( 'WP_Error', $editor );
|
||||
$this->assertNotWPError( $editor );
|
||||
$editor->load();
|
||||
$editor->rotate( 180 );
|
||||
$save_to_file = tempnam( get_temp_dir(), '' ) . '.png';
|
||||
|
||||
Reference in New Issue
Block a user