WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/15/2014 09:24:21 PM (5 years ago)
Author:
johnbillion
Message:

Add tests which ensure the wp_editor_set_quality and jpeg_quality filters only apply if they are added before the corresponding WP_Image_Editor is instantiated.

Props DH-Shredder
See #29856

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/mock-image-editor.php

    r25380 r30873  
    88        public static $test_return = true;
    99        public static $save_return = array();
     10
     11        // Allow testing of jpeg_quality filter.
     12        public function set_mime_type( $mime_type = null ) {
     13            $this->mime_type = $mime_type;
     14        }
    1015
    1116        public function load() {
Note: See TracChangeset for help on using the changeset viewer.