Make WordPress Core

Changeset 40531


Ignore:
Timestamp:
04/22/2017 10:00:15 PM (10 years ago)
Author:
johnbillion
Message:

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

See #40533

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/import/import.php

    r38283 r40531  
    1919
    2020                if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) {
    21                         $this->markTestSkipped( 'WordPress Importer plugin is not installed.' );
     21                        $this->fail( 'WordPress Importer plugin is not installed.' );
    2222                }
    2323
  • trunk/tests/phpunit/tests/post/attachments.php

    r36721 r40531  
    5858        function test_insert_image_thumb_only() {
    5959                if ( !function_exists( 'imagejpeg' ) )
    60                         $this->markTestSkipped( 'jpeg support unavailable' );
     60                        $this->fail( 'jpeg support unavailable' );
    6161
    6262                update_option( 'medium_size_w', 0 );
    … …  
    110110        function test_insert_image_medium_sizes() {
    111111                if ( !function_exists( 'imagejpeg' ) )
    112                         $this->markTestSkipped( 'jpeg support unavailable' );
     112                        $this->fail( 'jpeg support unavailable' );
    113113
    114114                update_option('medium_size_w', 400);
    … …  
    168168        function test_insert_image_delete() {
    169169                if ( !function_exists( 'imagejpeg' ) )
    170                         $this->markTestSkipped( 'jpeg support unavailable' );
     170                        $this->fail( 'jpeg support unavailable' );
    171171
    172172                update_option('medium_size_w', 400);
Note: See TracChangeset for help on using the changeset viewer.