Changeset 50814 for trunk/tests/phpunit/tests/image/editor.php
- Timestamp:
- 05/05/2021 05:06:17 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/image/editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editor.php
r50810 r50814 206 206 public function test_wp_get_webp_info( $file, $expected ) { 207 207 $editor = wp_get_image_editor( $file ); 208 208 209 if ( is_wp_error( $editor ) || ! $editor->supports_mime_type( 'image/webp' ) ) { 209 $this->markTestSkipped( sprintf( 'Skipping test: no WebP support in the editor engine %s on this system.', $this->editor_engine ) ); 210 } else { 211 $file_data = wp_get_webp_info( $file ); 212 $this->assertSame( $file_data, $expected ); 210 $this->markTestSkipped( sprintf( 'No WebP support in the editor engine %s on this system.', $this->editor_engine ) ); 213 211 } 214 } 215 216 /** 217 * Data provider for test_wp_get_webp_info(); 212 213 $file_data = wp_get_webp_info( $file ); 214 $this->assertSame( $file_data, $expected ); 215 } 216 217 /** 218 * Data provider for test_wp_get_webp_info(). 218 219 */ 219 220 public function _test_wp_get_webp_info() {
Note: See TracChangeset
for help on using the changeset viewer.