Make WordPress Core


Ignore:
Timestamp:
09/20/2020 02:45:35 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Skip some image tests if neither GD nor Imagick image editor engines are supported on the system.

The explicit message brings some consistency with other image editor tests, specifically the ones using the WP_Image_UnitTestCase class.

Previously, the tests were marked as "risky" in that scenario, due to performing no assertions.

See #50639, #50640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r48937 r49009  
    2828        $class = 'WP_Http_' . ucfirst( $this->transport );
    2929        if ( ! call_user_func( array( $class, 'test' ) ) ) {
    30             $this->markTestSkipped( sprintf( 'The transport %s is not supported on this system', $this->transport ) );
     30            $this->markTestSkipped( sprintf( 'The transport %s is not supported on this system.', $this->transport ) );
    3131        }
    3232
Note: See TracChangeset for help on using the changeset viewer.