diff --git a/tests/phpunit/tests/image/editor.php b/tests/phpunit/tests/image/editor.php index da57c2b406..1a8fbeb8e8 100644 --- a/tests/phpunit/tests/image/editor.php +++ b/tests/phpunit/tests/image/editor.php @@ -56,16 +56,16 @@ class Tests_Image_Editor extends WP_Image_UnitTestCase { $editor->set_mime_type( "image/jpeg" ); // Ensure mime-specific filters act properly. // Check default value - $this->assertEquals( 90, $editor->get_quality() ); + $this->assertEquals( 82, $editor->get_quality() ); // Ensure the quality filters do not have precedence if created after editor instantiation. $func_100_percent = create_function( '', "return 100;" ); add_filter( 'wp_editor_set_quality', $func_100_percent ); - $this->assertEquals( 90, $editor->get_quality() ); + $this->assertEquals( 82, $editor->get_quality() ); $func_95_percent = create_function( '', "return 95;" ); add_filter( 'jpeg_quality', $func_95_percent ); - $this->assertEquals( 90, $editor->get_quality() ); + $this->assertEquals( 82, $editor->get_quality() ); // Ensure set_quality() works and overrides the filters $this->assertTrue( $editor->set_quality( 75 ) );