Changeset 49009 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 09/20/2020 02:45:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r48937 r49009 156 156 } 157 157 158 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 159 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 160 } 161 158 162 require_once ABSPATH . 'wp-admin/includes/image-edit.php'; 159 163 … … 209 213 } 210 214 215 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 216 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 217 } 218 211 219 // Test each image editor engine. 212 220 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); … … 246 254 if ( ! extension_loaded( 'fileinfo' ) ) { 247 255 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' ); 256 } 257 258 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 259 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 248 260 } 249 261 … … 307 319 $editor2 = wp_get_image_editor( DIR_TESTDATA ); 308 320 $this->assertNotInternalType( 'resource', $editor2 ); 321 322 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 323 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 324 } 309 325 310 326 // Then, test with editors. … … 511 527 */ 512 528 public function test_crop_setting_for_pdf() { 513 514 529 if ( ! wp_image_editor_supports( array( 'mime_type' => 'application/pdf' ) ) ) { 515 530 $this->markTestSkipped( 'Rendering PDFs is not supported on this system.' );
Note: See TracChangeset
for help on using the changeset viewer.