mirror of
git://develop.git.wordpress.org/
synced 2025-04-14 00:52:00 +02:00
Tests: Reorder is_gd_image()
test methods for consistency.
This moves the test for valid types first, to match `file_is_valid_image()` and `file_is_displayable_image()` tests. Follow-up to [48798], [53527]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b949c646db
commit
6b87f4f0d7
@ -218,6 +218,14 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
return $this->text_array_to_dataprovider( $files );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 50833
|
||||
* @requires extension gd
|
||||
*/
|
||||
public function test_is_gd_image_valid_types() {
|
||||
$this->assertTrue( is_gd_image( imagecreate( 5, 5 ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 50833
|
||||
*/
|
||||
@ -231,14 +239,6 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
fclose( $handle );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 50833
|
||||
* @requires extension gd
|
||||
*/
|
||||
public function test_is_gd_image_valid_types() {
|
||||
$this->assertTrue( is_gd_image( imagecreate( 5, 5 ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test save image file and mime_types
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user