From 446189eac792d628ae073e676473b2175fbd61ce Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 22 Apr 2017 22:00:15 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/import/import.php | 2 +- tests/phpunit/tests/post/attachments.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/import/import.php b/tests/phpunit/tests/import/import.php index fa0bcbbda8..93034441fb 100644 --- a/tests/phpunit/tests/import/import.php +++ b/tests/phpunit/tests/import/import.php @@ -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'; diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php index 3df4ce4348..306192ce96 100644 --- a/tests/phpunit/tests/post/attachments.php +++ b/tests/phpunit/tests/post/attachments.php @@ -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);