mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Build/Test Tools: Remove more unnecessary test skipping when erroneous situations occur.
See #40533 git-svn-id: https://develop.svn.wordpress.org/trunk@40544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -140,7 +140,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_wp_save_image_file_deprecated_with_gd_resource() {
|
||||
if ( !function_exists( 'imagejpeg' ) )
|
||||
$this->markTestSkipped( 'jpeg support unavailable' );
|
||||
$this->fail( 'jpeg support unavailable' );
|
||||
|
||||
// Call wp_save_image_file
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
@@ -161,7 +161,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase {
|
||||
*/
|
||||
public function test_wp_save_image_file_not_deprecated_with_wp_image_editor() {
|
||||
if ( !function_exists( 'imagejpeg' ) )
|
||||
$this->markTestSkipped( 'jpeg support unavailable' );
|
||||
$this->fail( 'jpeg support unavailable' );
|
||||
|
||||
// Call wp_save_image_file
|
||||
include_once( ABSPATH . 'wp-admin/includes/image-edit.php' );
|
||||
|
||||
Reference in New Issue
Block a user