Skip to content

Commit e44c94a

Browse files
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
1 parent 044f702 commit e44c94a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/tests/image/functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ public function test_wp_crop_image_with_filtered_extension() {
359359
unlink( $file );
360360
}
361361

362+
public function filter_image_editor_output_format() {
363+
return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' );
364+
}
365+
362366
/**
363367
* @requires function imagejpeg
364368
*/
@@ -678,10 +682,6 @@ public function test_fallback_intermediate_image_sizes() {
678682
}
679683
}
680684

681-
public function filter_image_editor_output_format() {
682-
return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' );
683-
}
684-
685685
public function filter_fallback_intermediate_image_sizes( $fallback_sizes, $metadata ) {
686686
// Add the 'test-size' to the list of fallback sizes.
687687
$fallback_sizes[] = 'test-size';

0 commit comments

Comments
 (0)