Make WordPress Core


Ignore:
Timestamp:
02/22/2016 11:13:27 PM (9 years ago)
Author:
mikeschroder
Message:

Media: Update unit tests after change to default image quality.

Updates unit tests to reflect new default quality setting of '82' after [36615].

See #33642.

File:
1 edited

Legend:

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

    r33250 r36616  
    5757
    5858        // Check default value
    59         $this->assertEquals( 90, $editor->get_quality() );
     59        $this->assertEquals( 82, $editor->get_quality() );
    6060
    6161        // Ensure the quality filters do not have precedence if created after editor instantiation.
    6262        $func_100_percent = create_function( '', "return 100;" );
    6363        add_filter( 'wp_editor_set_quality', $func_100_percent );
    64         $this->assertEquals( 90, $editor->get_quality() );
     64        $this->assertEquals( 82, $editor->get_quality() );
    6565
    6666        $func_95_percent = create_function( '', "return 95;" );
    6767        add_filter( 'jpeg_quality', $func_95_percent );
    68         $this->assertEquals( 90, $editor->get_quality() );
     68        $this->assertEquals( 82, $editor->get_quality() );
    6969
    7070        // Ensure set_quality() works and overrides the filters
Note: See TracChangeset for help on using the changeset viewer.