WordPress.org

Make WordPress Core

Changeset 49045


Ignore:
Timestamp:
09/25/2020 01:43:19 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Tests: Require imagejpeg() function in some more media tests.

This outputs a proper message if the requirement is not met, instead of an obscure PHP error 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].

See #50639, #50640.

File:
1 edited

Legend:

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

    r49032 r49045  
    14681468    /**
    14691469     * @ticket 33641
     1470     * @requires function imagejpeg
    14701471     */
    14711472    function test_wp_calculate_image_srcset() {
     
    15151516    /**
    15161517     * @ticket 33641
     1518     * @requires function imagejpeg
    15171519     */
    15181520    function test_wp_calculate_image_srcset_no_date_uploads() {
     
    15711573    /**
    15721574     * @ticket 33641
     1575     * @requires function imagejpeg
    15731576     */
    15741577    function test_wp_calculate_image_srcset_with_edits() {
     
    16041607    /**
    16051608     * @ticket 35106
     1609     * @requires function imagejpeg
    16061610     */
    16071611    function test_wp_calculate_image_srcset_with_absolute_path_in_meta() {
     
    19011905    /**
    19021906     * @ticket 33641
     1907     * @requires function imagejpeg
    19031908     */
    19041909    function test_wp_get_attachment_image_srcset() {
     
    19911996    /**
    19921997     * @ticket 33641
     1998     * @requires function imagejpeg
    19931999     */
    19942000    function test_wp_calculate_image_sizes() {
     
    20142020    /**
    20152021     * @ticket 33641
     2022     * @requires function imagejpeg
    20162023     */
    20172024    function test_wp_filter_content_tags_srcset_sizes() {
     
    21752182     * @ticket 35045
    21762183     * @ticket 33641
     2184     * @requires function imagejpeg
    21772185     */
    21782186    function test_wp_filter_content_tags_schemes() {
     
    26252633    /**
    26262634     * @ticket 50367
     2635     * @requires function imagejpeg
    26272636     */
    26282637    function test_wp_filter_content_tags_width_height() {
     
    26702679     * @ticket 44427
    26712680     * @ticket 50367
     2681     * @requires function imagejpeg
    26722682     */
    26732683    function test_wp_filter_content_tags_loading_lazy() {
Note: See TracChangeset for help on using the changeset viewer.