mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 08:32:10 +02:00
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
This commit is contained in:
parent
044f702a1c
commit
e44c94abc5
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user