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:
parent
64f8351da1
commit
a16ada6d31
@ -57,7 +57,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase {
|
||||
public function test_gzdeflate() {
|
||||
|
||||
if ( !function_exists( 'gzdeflate' ) ) {
|
||||
$this->markTestSkipped( 'gzdeflate function not available' );
|
||||
$this->fail( 'gzdeflate function not available' );
|
||||
}
|
||||
|
||||
// Become an administrator
|
||||
@ -84,7 +84,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase {
|
||||
public function test_gzencode() {
|
||||
|
||||
if ( !function_exists('gzencode') ) {
|
||||
$this->markTestSkipped( 'gzencode function not available' );
|
||||
$this->fail( 'gzencode function not available' );
|
||||
}
|
||||
|
||||
// Become an administrator
|
||||
|
@ -507,7 +507,7 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
|
||||
if ( count( $wpdb->get_results( 'SHOW CREATE PROCEDURE `test_mysqli_flush_sync_procedure`' ) ) < 1 ) {
|
||||
$wpdb->suppress_errors( $suppress );
|
||||
$this->markTestSkipped( 'procedure could not be created (missing privileges?)' );
|
||||
$this->fail( 'procedure could not be created (missing privileges?)' );
|
||||
}
|
||||
|
||||
$post_id = self::factory()->post->create();
|
||||
|
@ -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' );
|
||||
|
@ -11,8 +11,6 @@ class Tests_Image_Meta extends WP_UnitTestCase {
|
||||
$this->markTestSkipped( 'The gd PHP extension is not loaded.' );
|
||||
if ( ! extension_loaded( 'exif' ) )
|
||||
$this->markTestSkipped( 'The exif PHP extension is not loaded.' );
|
||||
if ( ! is_callable( 'wp_read_image_metadata' ) )
|
||||
$this->markTestSkipped( 'wp_read_image_metadata() is not callable.' );
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user