From cde3d4c399da76fd3008aefef264f5a0dc10d3a1 Mon Sep 17 00:00:00 2001 From: Mike Schroder Date: Mon, 22 Feb 2016 23:13:27 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@36616 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/image/editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) );