From 6b87f4f0d745530d9da71ca1cf745719fccf445d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 Jun 2022 16:03:45 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/image/functions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php index 69197ecb55..c69ec62786 100644 --- a/tests/phpunit/tests/image/functions.php +++ b/tests/phpunit/tests/image/functions.php @@ -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 *