Make WordPress Core


Ignore:
Timestamp:
09/20/2020 02:45:35 AM (5 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/image/base.php

    r48937 r49009  
    1313
    1414        if ( ! call_user_func( array( $this->editor_engine, 'test' ) ) ) {
    15             $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system', $this->editor_engine ) );
     15            $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', $this->editor_engine ) );
    1616        }
    1717
Note: See TracChangeset for help on using the changeset viewer.