Changeset 42863 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 03/20/2018 10:34:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r42792 r42863 164 164 $ret = wp_save_image_file( $file, $img, $mime_type, 1 ); 165 165 $this->assertNotEmpty( $ret ); 166 $this->assertNot InstanceOf( 'WP_Error',$ret );166 $this->assertNotWPError( $ret ); 167 167 $this->assertEquals( $mime_type, $this->get_mime_type( $ret['path'] ) ); 168 168 … … 206 206 // Make assertions 207 207 $this->assertNotEmpty( $ret ); 208 $this->assertNot InstanceOf( 'WP_Error',$ret );208 $this->assertNotWPError( $ret ); 209 209 $this->assertEquals( $mime_type, $this->get_mime_type( $ret['path'] ) ); 210 210 … … 250 250 // Save the image as each file extension, check the mime type 251 251 $img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' ); 252 $this->assertNot InstanceOf( 'WP_Error',$img );252 $this->assertNotWPError( $img ); 253 253 254 254 $temp = get_temp_dir(); … … 261 261 $ret = $img->save( trailingslashit( $temp ) . $file ); 262 262 $this->assertNotEmpty( $ret ); 263 $this->assertNot InstanceOf( 'WP_Error',$ret );263 $this->assertNotWPError( $ret ); 264 264 $this->assertEquals( $mime_type, $this->get_mime_type( $ret['path'] ) ); 265 265 unlink( $ret['path'] ); … … 311 311 0, 0, 100, 100, 100, 100 312 312 ); 313 $this->assertNot InstanceOf( 'WP_Error',$file );313 $this->assertNotWPError( $file ); 314 314 $this->assertFileExists( $file ); 315 315 $image = wp_get_image_editor( $file ); … … 335 335 DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' 336 336 ); 337 $this->assertNot InstanceOf( 'WP_Error',$file );337 $this->assertNotWPError( $file ); 338 338 $this->assertFileExists( $file ); 339 339 $image = wp_get_image_editor( $file );
Note: See TracChangeset
for help on using the changeset viewer.