Make WordPress Core

Changeset 49069


Ignore:
Timestamp:
09/29/2020 02:14:28 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Require imagejpeg() function in Ajax media editing tests.

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

These tests rely on multiple resized copies of a test JPEG image being generated and available.

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

See #50639, #50640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/MediaEdit.php

    r47198 r49069  
    2626        /**
    2727         * @ticket 22985
     28         * @requires function imagejpeg
    2829         */
    2930        public function testCropImageThumbnail() {
     
    5556        /**
    5657         * @ticket 32171
     58         * @requires function imagejpeg
    5759         */
    5860        public function testImageEditOverwriteConstant() {
Note: See TracChangeset for help on using the changeset viewer.