Make WordPress Core

Changeset 49050


Ignore:
Timestamp:
09/26/2020 02:32:25 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Require imagejpeg() function in one more media test.

This outputs a proper message if the requirement is not met, instead of an obscure failure further in the test.

This test relies on multiple resized copies of a test JPEG image being generated and available.

Follow-up to [49010], [49024], [49025], [49045].

See #50639, #50640.

File:
1 edited

Legend:

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

    r49045 r49050  
    23542354     *
    23552355     * @ticket 36246
     2356     * @requires function imagejpeg
    23562357     */
    23572358    function test_wp_get_attachment_image_should_use_wp_get_attachment_metadata() {
Note: See TracChangeset for help on using the changeset viewer.