Changeset 48937 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r48798 r48937 187 187 $this->assertNotEmpty( $ret ); 188 188 $this->assertNotWPError( $ret ); 189 $this->assert Equals( $mime_type, $this->get_mime_type( $ret['path'] ) );189 $this->assertSame( $mime_type, $this->get_mime_type( $ret['path'] ) ); 190 190 191 191 // Clean up. … … 229 229 $this->assertNotEmpty( $ret ); 230 230 $this->assertNotWPError( $ret ); 231 $this->assert Equals( $mime_type, $this->get_mime_type( $ret['path'] ) );231 $this->assertSame( $mime_type, $this->get_mime_type( $ret['path'] ) ); 232 232 233 233 // Clean up. … … 284 284 $this->assertNotEmpty( $ret ); 285 285 $this->assertNotWPError( $ret ); 286 $this->assert Equals( $mime_type, $this->get_mime_type( $ret['path'] ) );286 $this->assertSame( $mime_type, $this->get_mime_type( $ret['path'] ) ); 287 287 unlink( $ret['path'] ); 288 288 } … … 320 320 321 321 $this->assertInstanceOf( 'WP_Error', $loaded ); 322 $this->assert Equals( 'error_loading_image', $loaded->get_error_code() );322 $this->assertSame( 'error_loading_image', $loaded->get_error_code() ); 323 323 } 324 324 } … … 342 342 $image = wp_get_image_editor( $file ); 343 343 $size = $image->get_size(); 344 $this->assert Equals( 100, $size['height'] );345 $this->assert Equals( 100, $size['width'] );344 $this->assertSame( 100, $size['height'] ); 345 $this->assertSame( 100, $size['width'] ); 346 346 347 347 unlink( $file ); … … 377 377 $image = wp_get_image_editor( $file ); 378 378 $size = $image->get_size(); 379 $this->assert Equals( 100, $size['height'] );380 $this->assert Equals( 100, $size['width'] );379 $this->assertSame( 100, $size['height'] ); 380 $this->assertSame( 100, $size['width'] ); 381 381 382 382 unlink( $file );
Note: See TracChangeset
for help on using the changeset viewer.