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:
John Blackbourn
2017-04-23 22:11:52 +00:00
parent 64f8351da1
commit a16ada6d31
4 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -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' );