Changeset 53532
- Timestamp:
- 06/19/2022 05:26:52 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/image/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r53531 r53532 258 258 $loaded = $img->load(); 259 259 260 $this->assertNotWPError( $loaded, 'Image failed to load - WP_Error returned' ); 261 260 262 if ( ! $img->supports_mime_type( $mime_type ) ) { 261 263 $this->markTestSkipped( … … 333 335 $loaded = $img->load(); 334 336 337 $this->assertNotWPError( $loaded, 'Image failed to load - WP_Error returned' ); 338 335 339 // Save the file. 336 340 $mime_type = 'image/gif'; … … 376 380 $loaded = $img->load(); 377 381 378 $img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' ); 379 $this->assertNotWPError( $img ); 382 $this->assertNotWPError( $loaded, 'Image failed to load - WP_Error returned' ); 380 383 381 384 if ( ! $img->supports_mime_type( $mime_type ) ) {
Note: See TracChangeset
for help on using the changeset viewer.