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
 	 *