Make WordPress Core

Changeset 53522


Ignore:
Timestamp:
06/19/2022 12:47:47 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r53497 r53522  
    358358
    359359        unlink( $file );
     360    }
     361
     362    public function filter_image_editor_output_format() {
     363        return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' );
    360364    }
    361365
     
    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.
Note: See TracChangeset for help on using the changeset viewer.