In Imagick tests, instantiate WP_Image_Editor_Imagick
directly instead of calling wp_get_image_editor()
.
This is for greater consistency with other image editor tests. Props voldemortensen. Fixes #30820. git-svn-id: https://develop.svn.wordpress.org/trunk@30990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c68f89686
commit
8dbce12a61
@ -462,7 +462,7 @@ class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase {
|
||||
public function test_image_preserves_alpha_on_resize() {
|
||||
$file = DIR_TESTDATA . '/images/transparent.png';
|
||||
|
||||
$editor = wp_get_image_editor( $file );
|
||||
$editor = new WP_Image_Editor_Imagick( $file );
|
||||
|
||||
$this->assertNotInstanceOf( 'WP_Error', $editor );
|
||||
|
||||
@ -489,7 +489,7 @@ class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase {
|
||||
public function test_image_preserves_alpha() {
|
||||
$file = DIR_TESTDATA . '/images/transparent.png';
|
||||
|
||||
$editor = wp_get_image_editor( $file );
|
||||
$editor = new WP_Image_Editor_Imagick( $file );
|
||||
|
||||
$this->assertNotInstanceOf( 'WP_Error', $editor );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user