Build/Test Tools: Convert more test skipping into hard failures. These dependencies should all be present when testing.

See #40533


git-svn-id: https://develop.svn.wordpress.org/trunk@40531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-04-22 22:00:15 +00:00
parent b060b7e503
commit 446189eac7
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ class Tests_Import_Import extends WP_Import_UnitTestCase {
add_filter( 'import_allow_create_users', '__return_true' );
if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
$this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
$this->fail( 'WordPress Importer plugin is not installed.' );
}
require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';

View File

@ -57,7 +57,7 @@ class Tests_Post_Attachments extends WP_UnitTestCase {
function test_insert_image_thumb_only() {
if ( !function_exists( 'imagejpeg' ) )
$this->markTestSkipped( 'jpeg support unavailable' );
$this->fail( 'jpeg support unavailable' );
update_option( 'medium_size_w', 0 );
update_option( 'medium_size_h', 0 );
@ -109,7 +109,7 @@ class Tests_Post_Attachments extends WP_UnitTestCase {
function test_insert_image_medium_sizes() {
if ( !function_exists( 'imagejpeg' ) )
$this->markTestSkipped( 'jpeg support unavailable' );
$this->fail( 'jpeg support unavailable' );
update_option('medium_size_w', 400);
update_option('medium_size_h', 0);
@ -167,7 +167,7 @@ class Tests_Post_Attachments extends WP_UnitTestCase {
function test_insert_image_delete() {
if ( !function_exists( 'imagejpeg' ) )
$this->markTestSkipped( 'jpeg support unavailable' );
$this->fail( 'jpeg support unavailable' );
update_option('medium_size_w', 400);
update_option('medium_size_h', 0);