Changeset 36616 for trunk/tests/phpunit/tests/image/editor.php
- Timestamp:
- 02/22/2016 11:13:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editor.php
r33250 r36616 57 57 58 58 // Check default value 59 $this->assertEquals( 90, $editor->get_quality() );59 $this->assertEquals( 82, $editor->get_quality() ); 60 60 61 61 // Ensure the quality filters do not have precedence if created after editor instantiation. 62 62 $func_100_percent = create_function( '', "return 100;" ); 63 63 add_filter( 'wp_editor_set_quality', $func_100_percent ); 64 $this->assertEquals( 90, $editor->get_quality() );64 $this->assertEquals( 82, $editor->get_quality() ); 65 65 66 66 $func_95_percent = create_function( '', "return 95;" ); 67 67 add_filter( 'jpeg_quality', $func_95_percent ); 68 $this->assertEquals( 90, $editor->get_quality() );68 $this->assertEquals( 82, $editor->get_quality() ); 69 69 70 70 // Ensure set_quality() works and overrides the filters
Note: See TracChangeset
for help on using the changeset viewer.