From 8dbce12a61ac1458be8aded27efd3389b33bb4bb Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 23 Dec 2014 14:34:09 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/image/editor_imagick.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/image/editor_imagick.php b/tests/phpunit/tests/image/editor_imagick.php index 4553446188..a792f15469 100644 --- a/tests/phpunit/tests/image/editor_imagick.php +++ b/tests/phpunit/tests/image/editor_imagick.php @@ -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 );