From e44c94abc504aecc93f7ed4dac00ca7700eff8c2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 Jun 2022 12:47:47 +0000 Subject: [PATCH] Tests: Move the `filter_image_editor_output_format()` helper method next to the test it's used in. Follow-up to [53292], [53495]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53522 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/image/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php index c2c5ffe39d..8dbadd3886 100644 --- a/tests/phpunit/tests/image/functions.php +++ b/tests/phpunit/tests/image/functions.php @@ -359,6 +359,10 @@ class Tests_Image_Functions extends WP_UnitTestCase { unlink( $file ); } + public function filter_image_editor_output_format() { + return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' ); + } + /** * @requires function imagejpeg */ @@ -678,10 +682,6 @@ class Tests_Image_Functions extends WP_UnitTestCase { } } - public function filter_image_editor_output_format() { - return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' ); - } - public function filter_fallback_intermediate_image_sizes( $fallback_sizes, $metadata ) { // Add the 'test-size' to the list of fallback sizes. $fallback_sizes[] = 'test-size';